Skip to content

Commit 6541b86

Browse files
committed
Instantiate AsyncioExecutor lazily
1 parent 466ca61 commit 6541b86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cirq-google/cirq_google/engine/engine_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ def __init__(
105105
service_args = {}
106106

107107
self._service_args = service_args
108-
self._executor = AsyncioExecutor()
108+
109+
@cached_property
110+
def _executor(self) -> AsyncioExecutor:
111+
return AsyncioExecutor()
109112

110113
@cached_property
111114
def grpc_client(self) -> quantum.QuantumEngineServiceAsyncClient:

0 commit comments

Comments
 (0)