Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agronholm/anyio
/ functions
Functions
2,553 in github.com/agronholm/anyio
⨍
Functions
2,553
◇
Types & classes
300
↳
Endpoints
18
Function
cache
( # type: ignore[overload-overlap] func: Callable[P, Coroutine[Any, Any, T]], / )
src/anyio/functools.py:257
Method
cache_clear
(self)
src/anyio/functools.py:132
Method
cache_info
(self)
src/anyio/functools.py:119
Method
cache_parameters
(self)
src/anyio/functools.py:124
Method
callback
(f: object)
src/anyio/_backends/_asyncio.py:1518
Method
caller
(*, task_status: TaskStatus[CancelScope])
tests/test_from_thread.py:503
Method
cancel
Set the task to a cancelled state. This will interrupt any interruptible asynchronous operation, and will cause any further
src/anyio/_core/_tasks.py:337
Method
cancel
(self, reason: str | None = None)
src/anyio/_backends/_trio.py:170
Method
cancel_called
``True`` if :meth:`cancel` has been called.
src/anyio/_core/_tasks.py:84
Method
cancel_called
(self)
src/anyio/_backends/_asyncio.py:726
Method
cancel_called
(self)
src/anyio/_backends/_trio.py:182
Function
cancel_group
()
tests/test_taskgroups.py:629
Method
cancel_shielded_checkpoint
(cls)
src/anyio/_backends/_trio.py:1111
Method
cancel_target
(_: Future[None])
src/anyio/from_thread.py:396
Function
cancel_when_ready
()
tests/test_taskgroups.py:883
Method
cancel_when_started
(scope: CancelScope)
tests/test_from_thread.py:461
Method
cancelled_caught
``True`` if this scope suppressed a cancellation exception it itself raised. This is typically used to check if any work was interru
src/anyio/_core/_tasks.py:89
Method
cancelled_caught
(self)
src/anyio/_backends/_asyncio.py:730
Method
cancelled_caught
(self)
src/anyio/_backends/_trio.py:186
Method
cancelled_exception_class
Return the exception class that is raised in a task if it's cancelled.
src/anyio/abc/_eventloop.py:104
Method
cancelled_exception_class
(cls)
src/anyio/_backends/_asyncio.py:2632
Function
canceller
()
tests/test_from_thread.py:89
Method
capture_socket
(*args: Any, **kwargs: Any)
tests/test_sockets.py:2149
Method
cb
()
src/anyio/_backends/_asyncio.py:3070
Function
check_asyncio_bug
(anyio_backend_name: str, family: AnyIPAddressFamily)
tests/test_sockets.py:156
Function
check_body_exc
(exc: RuntimeError, /)
tests/test_taskgroups.py:1341
Function
check_cancelled
Check if the cancel scope of the host task's running the current worker thread has been cancelled. If the host task's current cancel sco
src/anyio/from_thread.py:670
Method
check_cancelled
(cls)
src/anyio/_backends/_asyncio.py:2782
Method
check_cancelled
(cls)
src/anyio/_backends/_trio.py:1174
Method
check_thread
()
tests/test_to_thread.py:409
Function
child
()
tests/test_taskgroups.py:558
Method
child_task
(task_status: TaskStatus[None])
tests/test_taskgroups.py:1816
Function
client_context
(ca: CA)
tests/conftest.py:154
Function
client_context
(ca: trustme.CA)
docs/snippets/streams/tls_trustme_fixtures.py:20
Method
clone
Create a clone of this receive stream. Each clone can be closed separately. Only when all clones have been closed will the r
src/anyio/streams/memory.py:145
Method
close_when_blocked
()
tests/test_sockets.py:2295
Method
close_when_blocked
()
tests/test_sockets.py:2569
Method
close_when_blocked
()
tests/test_sockets.py:2957
Method
close_when_blocked
()
tests/test_sockets.py:3194
Method
closed
(self)
src/anyio/_core/_tempfile.py:340
Function
collapse_excgroups
()
docs/snippets/migration/collapse_excgroups.py:14
Function
connect
(host: str, port: int, tls: bool)
docs/snippets/typedattrs/connect.py:6
Method
connect
Connect to the remote endpoint. :return: an object stream connected to the remote end :raises ConnectionFailed: if the conne
src/anyio/abc/_streams.py:214
Method
connect
Connect to the remote endpoint. :return: a bytestream connected to the remote end :raises ConnectionFailed: if the connectio
src/anyio/abc/_streams.py:225
Method
connect
(self)
tests/streams/test_buffered.py:137
Method
connect
(self)
tests/streams/test_text.py:129
Method
connect_and_cancel
(*args: Any)
tests/test_sockets.py:504
Method
connect_sync
(addr: tuple[str, int])
tests/streams/test_tls.py:568
Method
connect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/abc/_eventloop.py:278
Method
connect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/_backends/_asyncio.py:2934
Method
connect_unix
( cls, path: str | bytes, kind: Literal[SocketKind.SOCK_STREAM, SocketKind.SOCK_SEQPAC
src/anyio/abc/_eventloop.py:285
Method
connect_unix
( cls, path: str | bytes, kind: Literal[SocketKind.SOCK_STREAM, SocketKind.SOCK_SEQPAC
src/anyio/_backends/_asyncio.py:2947
Method
connection_lost
(self, exc: Exception | None)
src/anyio/_backends/_asyncio.py:1351
Method
connection_lost
(self, exc: Exception | None)
src/anyio/_backends/_asyncio.py:1388
Method
connection_made
(self, transport: asyncio.BaseTransport)
src/anyio/_backends/_asyncio.py:1344
Method
connection_made
(self, transport: asyncio.BaseTransport)
src/anyio/_backends/_asyncio.py:1381
Function
consume
(sigiter: AsyncIterable[int])
tests/test_signals.py:54
Function
consumer
(name: str, receive_stream: MemoryObjectReceiveStream[str])
docs/snippets/streams/memory_stream_cloning.py:11
Method
convert_item
(item: StrOrBytesPath)
src/anyio/_backends/_trio.py:1226
Method
coro
The coroutine object that was passed to one of the task-spawning methods in :class:`TaskGroup`.
src/anyio/_core/_tasks.py:351
Method
coro_fn
()
tests/test_taskgroups.py:2096
Function
corofunc
()
tests/test_taskgroups.py:1474
Function
cpu_intensive_function
(arg1: str, arg2: str)
docs/snippets/subprocesses/run_in_worker_process.py:6
Function
crash
()
tests/test_taskgroups.py:1598
Method
create
(**kwargs: Any)
tests/test_tempfile.py:68
Method
create_cancel_scope
( cls, *, deadline: float = math.inf, shield: bool = False )
src/anyio/_backends/_asyncio.py:2668
Method
create_capacity_limiter
(cls, total_tokens: float)
src/anyio/abc/_eventloop.py:199
Method
create_capacity_limiter
(cls, total_tokens: float)
src/anyio/_backends/_asyncio.py:2719
Function
create_custom_task
( coro: Coroutine[Any, Any, Any], /, **kwargs: Any )
tests/test_taskgroups.py:2206
Method
create_event
(cls)
src/anyio/abc/_eventloop.py:178
Method
create_event
(cls)
src/anyio/_backends/_asyncio.py:2701
Method
create_lock
(cls, *, fast_acquire: bool)
src/anyio/abc/_eventloop.py:183
Method
create_lock
(cls, *, fast_acquire: bool)
src/anyio/_backends/_asyncio.py:2705
Method
create_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/abc/_eventloop.py:188
Method
create_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/_backends/_asyncio.py:2709
Method
create_task_group
(cls)
src/anyio/_backends/_asyncio.py:2697
Method
create_tcp_listener
(cls, sock: socket)
src/anyio/abc/_eventloop.py:294
Method
create_tcp_listener
(cls, sock: socket.socket)
src/anyio/_backends/_asyncio.py:2971
Method
create_test_runner
(cls, options: dict[str, Any])
src/anyio/_backends/_asyncio.py:3296
Method
create_test_runner
(cls, options: dict[str, Any])
src/anyio/_backends/_trio.py:1485
Method
create_udp_socket
( cls, family: AddressFamily, local_address: IPSockAddrType | None, remote_add
src/anyio/abc/_eventloop.py:304
Method
create_udp_socket
( cls, family: AddressFamily, local_address: IPSockAddrType | None, remote_add
src/anyio/_backends/_asyncio.py:2979
Method
create_unix_datagram_socket
( cls, raw_socket: socket, remote_path: None )
src/anyio/abc/_eventloop.py:315
Method
create_unix_datagram_socket
( # type: ignore[override] cls, raw_socket: socket.socket, remote_path: str | bytes | None )
src/anyio/_backends/_asyncio.py:3003
Method
create_unix_listener
(cls, sock: socket)
src/anyio/abc/_eventloop.py:299
Method
create_unix_listener
(cls, sock: socket.socket)
src/anyio/_backends/_asyncio.py:2975
Function
current_default_thread_limiter
Return the capacity limiter that is used by default to limit the number of concurrent threads. :return: a capacity limiter object :r
src/anyio/to_thread.py:70
Method
current_default_thread_limiter
(cls)
src/anyio/_backends/_trio.py:1440
Method
current_effective_deadline
(cls)
src/anyio/_backends/_asyncio.py:2674
Method
current_time
Return the current value of the event loop's internal clock. :return: the clock value (seconds)
src/anyio/abc/_eventloop.py:95
Method
current_token
(cls)
src/anyio/_backends/_asyncio.py:2624
Method
data_received
(self, data: bytes)
src/anyio/_backends/_asyncio.py:1358
Method
datagram_received
(self, data: bytes, addr: IPSockAddrType)
src/anyio/_backends/_asyncio.py:1392
Function
deactivate_blockbuster
(blockbuster: BlockBuster | None)
tests/conftest.py:128
Method
deadline
The time (clock value) when this scope is cancelled automatically. Will be ``float('inf')`` if no timeout has been set.
src/anyio/_core/_tasks.py:70
Method
deadline
(self)
src/anyio/_backends/_asyncio.py:708
Method
deadline
(self)
src/anyio/_backends/_trio.py:174
Function
destroy_workers
()
tests/test_to_interpreter.py:18
Method
do_aclose
()
tests/test_sockets.py:701
Method
do_aclose
()
tests/test_sockets.py:1815
← previous
next →
901–1,000 of 2,553, ranked by callers