Skip to content

Await complete

AwaitComplete class

def __init__(self, *coroutines):

An 'optionally-awaitable' object.

Parameters
Parameter Default Description
coroutines
Coroutine[Any, Any, Any]
()

One or more coroutines to execute.

exception property

exception: BaseException | None

An exception if it occurred in any of the coroutines.

is_done property

is_done: bool

Returns True if the task has completed.

nothing classmethod

def nothing(cls):

Returns an already completed instance of AwaitComplete.