openfl.utilities.fed_timer.SyncAsyncTaskDecoFactory#
- class openfl.utilities.fed_timer.SyncAsyncTaskDecoFactory[source]#
Bases:
objectSync and Async Task decorator factory.
This class is a factory for creating decorators for synchronous and asynchronous tasks. Task decorator factory allows creation of concrete implementation of wrapper interface and contextmanager to setup a common functionality/resources shared by async_wrapper and sync_wrapper.
- is_coroutine#
Whether the decorated function is a coroutine.
- Type:
bool
- __init__()#
Methods