asynced

A partial async coroutine.

Usage

Source

asynced()

Classes

Name Description
tasks A set of futures which tracks completion.

tasks

A set of futures which tracks completion.

Usage

Source

tasks()

The context manager waits for all tasks.

Methods

Name Description
as_completed() Replaces asyncio.as_completed, which requires a running loop.
iter() Wrap an asynchronous iterable into an iterator.
run() Synchronously call and run coroutine or asynchronous iterator.

as_completed()

Replaces asyncio.as_completed, which requires a running loop.

Usage

Source

as_completed(fs, loop=None, **kwargs)

iter()

Wrap an asynchronous iterable into an iterator.

Usage

Source

iter(aiterable, loop=None)

Analogous to asyncio.run for coroutines.


run()

Synchronously call and run coroutine or asynchronous iterator.

Usage

Source

run(*args, **kwargs)