|View source on GitHub|
Concurrency utilities for use with Python
class AsyncThreadRunner: Class which bridges async and synchronous synchronous interfaces.
class OrderedTasks: A group of asynchronous tasks to be run sequentially.
class SharedAwaitable: A wrapper allowing
async functions to be
awaited from multiple places.
ordered_tasks(...): A context manager ensuring that all ordered tasks complete before exit.