Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agronholm/anyio
/ functions
Functions
2,163 in github.com/agronholm/anyio
⨍
Functions
2,163
◇
Types & classes
270
↳
Endpoints
11
Method
borrowed_tokens
(self)
src/anyio/_core/_synchronization.py:697
Method
borrowed_tokens
(self)
src/anyio/_backends/_asyncio.py:2090
Method
borrowed_tokens
(self)
src/anyio/_backends/_trio.py:883
Method
borrower
( event: Event, *, task_status: TaskStatus[CancelScope] )
tests/test_synchronization.py:955
Method
buffer
The bytes currently in the buffer.
src/anyio/streams/buffered.py:46
Function
ca
()
tests/conftest.py:139
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:1417
Method
cancel
(self, reason: str | None = None)
src/anyio/_backends/_trio.py:166
Method
cancel_called
``True`` if :meth:`cancel` has been called.
src/anyio/_core/_tasks.py:86
Method
cancel_called
(self)
src/anyio/_backends/_asyncio.py:682
Method
cancel_called
(self)
src/anyio/_backends/_trio.py:178
Function
cancel_group
()
tests/test_taskgroups.py:571
Method
cancel_shielded_checkpoint
(cls)
src/anyio/_backends/_trio.py:1110
Function
cancel_when_ready
()
tests/test_taskgroups.py:760
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:91
Method
cancelled_caught
(self)
src/anyio/_backends/_asyncio.py:686
Method
cancelled_caught
(self)
src/anyio/_backends/_trio.py:182
Method
cancelled_exception_class
Return the exception class that is raised in a task if it's cancelled.
src/anyio/abc/_eventloop.py:95
Method
cancelled_exception_class
(cls)
src/anyio/_backends/_asyncio.py:2492
Function
canceller
()
tests/test_from_thread.py:82
Method
cb
()
src/anyio/_backends/_asyncio.py:2910
Function
check_asyncio_bug
(anyio_backend_name: str, family: AnyIPAddressFamily)
tests/test_sockets.py:142
Function
check_body_exc
(exc: RuntimeError, /)
tests/test_taskgroups.py:1218
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:563
Method
check_cancelled
(cls)
src/anyio/_backends/_asyncio.py:2644
Method
check_cancelled
(cls)
src/anyio/_backends/_trio.py:1173
Method
check_thread
()
tests/test_to_thread.py:308
Function
child
()
tests/test_taskgroups.py:500
Method
child_task
(task_status: TaskStatus[None])
tests/test_taskgroups.py:1655
Function
client_context
(ca: CA)
tests/conftest.py:154
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:135
Method
close_when_blocked
()
tests/test_sockets.py:1858
Method
close_when_blocked
()
tests/test_sockets.py:2037
Method
close_when_blocked
()
tests/test_sockets.py:2197
Method
close_when_blocked
()
tests/test_sockets.py:2395
Method
closed
(self)
src/anyio/_core/_tempfile.py:334
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:212
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:223
Method
connect
(self)
tests/streams/test_buffered.py:101
Method
connect
(self)
tests/streams/test_text.py:88
Method
connect_sync
(addr: tuple[str, int])
tests/streams/test_tls.py:538
Method
connect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/abc/_eventloop.py:249
Method
connect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/_backends/_asyncio.py:2778
Method
connect_unix
(cls, path: str | bytes)
src/anyio/abc/_eventloop.py:256
Method
connect_unix
(cls, path: str | bytes)
src/anyio/_backends/_asyncio.py:2791
Method
connection_lost
(self, exc: Exception | None)
src/anyio/_backends/_asyncio.py:1256
Method
connection_lost
(self, exc: Exception | None)
src/anyio/_backends/_asyncio.py:1294
Method
connection_made
(self, transport: asyncio.BaseTransport)
src/anyio/_backends/_asyncio.py:1249
Method
connection_made
(self, transport: asyncio.BaseTransport)
src/anyio/_backends/_asyncio.py:1287
Function
consume
(sigiter: AsyncIterable[int])
tests/test_signals.py:54
Method
convert_item
(item: StrOrBytesPath)
src/anyio/_backends/_trio.py:1212
Method
coro
The coroutine object that was passed to one of the task-spawning methods in :class:`TaskGroup`.
src/anyio/_core/_tasks.py:299
Method
coro_fn
()
tests/test_taskgroups.py:1884
Function
corofunc
()
tests/test_taskgroups.py:1351
Function
crash
()
tests/test_taskgroups.py:1503
Method
create_cancel_scope
( cls, *, deadline: float = math.inf, shield: bool = False )
src/anyio/_backends/_asyncio.py:2528
Method
create_capacity_limiter
(cls, total_tokens: float)
src/anyio/abc/_eventloop.py:190
Method
create_capacity_limiter
(cls, total_tokens: float)
src/anyio/_backends/_asyncio.py:2579
Function
create_custom_task
( coro: Coroutine[Any, Any, Any], /, **kwargs: Any )
tests/test_taskgroups.py:1994
Method
create_event
(cls)
src/anyio/abc/_eventloop.py:169
Method
create_event
(cls)
src/anyio/_backends/_asyncio.py:2561
Method
create_lock
(cls, *, fast_acquire: bool)
src/anyio/abc/_eventloop.py:174
Method
create_lock
(cls, *, fast_acquire: bool)
src/anyio/_backends/_asyncio.py:2565
Method
create_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/abc/_eventloop.py:179
Method
create_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/_backends/_asyncio.py:2569
Method
create_task
( self, coro: Coroutine[Any, Any, T_co], *, name: object = None, conte
src/anyio/_backends/_trio.py:259
Method
create_task_group
(cls)
src/anyio/_backends/_asyncio.py:2557
Method
create_tcp_listener
(cls, sock: socket)
src/anyio/abc/_eventloop.py:261
Method
create_tcp_listener
(cls, sock: socket.socket)
src/anyio/_backends/_asyncio.py:2811
Method
create_test_runner
(cls, options: dict[str, Any])
src/anyio/_backends/_asyncio.py:3132
Method
create_test_runner
(cls, options: dict[str, Any])
src/anyio/_backends/_trio.py:1464
Method
create_udp_socket
( cls, family: AddressFamily, local_address: IPSockAddrType | None, remote_add
src/anyio/abc/_eventloop.py:271
Method
create_udp_socket
( cls, family: AddressFamily, local_address: IPSockAddrType | None, remote_add
src/anyio/_backends/_asyncio.py:2819
Method
create_unix_datagram_socket
( cls, raw_socket: socket, remote_path: None )
src/anyio/abc/_eventloop.py:282
Method
create_unix_datagram_socket
( # type: ignore[override] cls, raw_socket: socket.socket, remote_path: str | bytes | None )
src/anyio/_backends/_asyncio.py:2843
Method
create_unix_listener
(cls, sock: socket)
src/anyio/abc/_eventloop.py:266
Method
create_unix_listener
(cls, sock: socket.socket)
src/anyio/_backends/_asyncio.py:2815
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:1419
Method
current_effective_deadline
(cls)
src/anyio/_backends/_asyncio.py:2534
Method
current_time
Return the current value of the event loop's internal clock. :return: the clock value (seconds)
src/anyio/abc/_eventloop.py:86
Method
current_token
(cls)
src/anyio/_backends/_asyncio.py:2484
Method
data_received
(self, data: bytes)
src/anyio/_backends/_asyncio.py:1263
Method
datagram_received
(self, data: bytes, addr: IPSockAddrType)
src/anyio/_backends/_asyncio.py:1299
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:72
Method
deadline
(self)
src/anyio/_backends/_asyncio.py:668
Method
deadline
(self)
src/anyio/_backends/_trio.py:170
Function
destroy_workers
()
tests/test_to_interpreter.py:18
Function
do_something
()
tests/test_taskgroups.py:1045
Function
drain_stream
(stream: AsyncIterable[bytes], index: int)
src/anyio/_core/_subprocesses.py:75
Method
drive
(self)
src/anyio/_core/_fileio.py:431
Function
dummy
()
tests/test_taskgroups.py:459
Method
dummy
()
tests/test_to_thread.py:349
Function
eager_task_loop_factory
()
tests/conftest.py:63
Method
eof_received
(self)
src/anyio/_backends/_asyncio.py:1268
← previous
next →
801–900 of 2,163, ranked by callers