Attend the Women in ML Symposium on December 7 Register now

Module: tff.async_utils

Stay organized with collections Save and categorize content based on your preferences.

Concurrency utilities for use with Python async.

Classes

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.

Functions

ordered_tasks(...): A context manager ensuring that all ordered tasks complete before exit.