unitelabs.sdk.utils
Packages
Attributes
- Name
__all__
- Type
- Value
= [ "call_async", "cancellable", "select_keys", "to_class_name", "to_method_name", "to_property_name", "Singleton" ]
- Description
Functions
call_async(
- *args : unitelabs.sdk.utils.asyncio.P.args,
- **kwargs : unitelabs.sdk.utils.asyncio.P.kwargs
Calls an async function synchronously and blocks until it finishes.
Parameters
- Name
*args
- Type
- unitelabs.sdk.utils.asyncio.P.args
- Default
- = ()
- Description
- Name
**kwargs
- Type
- unitelabs.sdk.utils.asyncio.P.kwargs
- Default
- = {}
- Description
Response
- Type
- R
- Description
cancellable(aiter : collections.abc.AsyncIterable[Iter], cancel : asyncio.Event) -> collections.abc.AsyncIterable[Iter]
Wraps async iterators with a cancellable event.
Parameters
- Name
aiter
- Type
- collections.abc.AsyncIterable[Iter]
- Default
- Description
- Name
cancel
- Type
- asyncio.Event
- Default
- Description
Response
- Type
- collections.abc.AsyncIterable[Iter]
- Description
Classes
Singleton
- Bases
- type
Methods
__call__(cls, *args : typing.Any, **kwds : typing.Any) -> typing.Any
Parameters
- Name
cls
- Type
- Default
- Description
- Name
*args
- Type
- typing.Any
- Default
- = ()
- Description
- Name
**kwds
- Type
- typing.Any
- Default
- = {}
- Description
Response
- Type
- typing.Any
- Description