asyncutils._internal.helpers¶
Miscellaneous helper functions for asyncutils submodules that are not meant to be seen by the user.
Warning
These are undocumented and unstable, and will remain so. This stub file exists for the convenience of development only.
Classes¶
A thin dictionary subclass that supports attribute access. |
|
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- class asyncutils._internal.helpers.Bag[source]¶
-
A thin dictionary subclass that supports attribute access.
Initialize self. See help(type(self)) for accurate signature.
- class asyncutils._internal.helpers.LoopMixinBase[source]¶
- make[T](aw: collections.abc.Awaitable[T], /) asyncio.Task[T][source]¶
Create a
Taskfor the given awaitable that runs in the underlying loop.
- make_fut() asyncio.Future[Any][source]¶
Create a
Futureattached to the underlying loop.
- make_multiple[T](
- aws: collections.abc.Iterable[collections.abc.Awaitable[T]],
- /,
Return an iterator over instances of
Taskcreated for each coroutine in C, in that order.
- property loop: asyncio.AbstractEventLoop¶
The underlying event loop.
- asyncutils._internal.helpers.coerce_callable[T: collections.abc.Callable[Ellipsis, Any]](f: T, /) T[source]¶
- asyncutils._internal.helpers.coerce_callable(o: T, /) type[T]
- asyncutils._internal.helpers.copy_and_clear[T: asyncutils._internal.prots.CanClearAndCopy[Any]](l: T) T[source]¶
- asyncutils._internal.helpers.create_executor(obj: object, /, save: bool = ...) asyncutils.config.Executor[source]¶
- asyncutils._internal.helpers.filter_out(*a: object, s: object = ...) collections.abc.Generator[Any][source]¶
- asyncutils._internal.helpers.get_loop_and_set() asyncio.AbstractEventLoop[source]¶
- asyncutils._internal.helpers.ismodule(o: object, /) TypeGuard[types.ModuleType][source]¶
- async asyncutils._internal.helpers.simple_wrap[T](aw: collections.abc.Awaitable[T], /) T[source]¶