Thanks for tuning in to Google I/O. View all sessions on demandWatch on demand

Module: tff.async_utils

Concurrency utilities for use with Python async.


class AsyncThreadRunner: Class which bridges async and synchronous synchronous interfaces.

class Callable

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.