|View source on GitHub|
Runs asyncio coroutines in a thread, exposes the results as duet futures.
cirq_google.engine.engine_client.AsyncioExecutor() -> None
This lets us bridge between an asyncio event loop (which is what async grpc code uses) and duet (which is what cirq uses for asynchrony).
submit( func: Callable[..., Awaitable[_R]], *args, **kw ) -> duet.AwaitableFuture[_R]
Dispatch the given function to be run in an asyncio coroutine.
||asyncio function which will be run in a separate thread. Will be called with *args and **kw and should return an asyncio awaitable.|
||Positional args to pass to func.|
||Keyword args to pass to func.|