Skip to main content

Task

Standard library class asyncio.Task View source
class Task
class Task[R](Future[R])
Fields 1
R type
Constructors 1
__init__
__init__(self: Self, /, coro: Coroutine[R], *, loop: Optional[EventLoop] = None, name: Optional[str] = None)
Added by asyncio
Methods 4
get_name
get_name(self: Self, /)
Added by asyncio
set_name
set_name(self: Self, value: str, /)
Added by asyncio
get_coro
get_coro[T: type = NoneType](self: Self, /) -> Coroutine[T]
Added by asyncio
result
result(self: Self, /)
Added by asyncio