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
Method
do_aclose
()
tests/test_sockets.py:2318
Method
do_aclose
()
tests/test_sockets.py:2592
Method
do_aclose
()
tests/test_sockets.py:2974
Method
do_aclose
()
tests/test_sockets.py:3213
Function
do_something
()
tests/test_taskgroups.py:1168
Function
do_something
()
docs/snippets/cancellation/cancel_reason.py:4
Function
do_something
(resource: AsyncResource)
docs/snippets/cancellation/shielded_cleanup.py:5
Method
do_something
(self)
docs/snippets/synchronization/resource_guard.py:8
Method
do_stuff
(self)
docs/snippets/threads/blocking_portal_provider.py:11
Function
double
(value: int)
tests/test_concurrency_utils.py:117
Function
drain_stream
(stream: AsyncIterable[bytes], index: int)
src/anyio/_core/_subprocesses.py:75
Method
drive
(self)
src/anyio/_core/_fileio.py:433
Function
dummy
()
tests/test_taskgroups.py:517
Method
dummy
()
tests/test_to_thread.py:450
Function
eager_task_loop_factory
()
tests/conftest.py:63
Method
eof_received
(self)
src/anyio/_backends/_asyncio.py:1363
Method
error_received
(self, exc: Exception)
src/anyio/_backends/_asyncio.py:1397
Function
event_loop_implementation_name
()
tests/conftest.py:191
Method
event_waiter
()
tests/test_from_thread.py:725
Method
exception
The exception raised by the task, or ``None`` if it finished without raising. :raises TaskNotFinished: if the task has not finished
src/anyio/_core/_tasks.py:390
Function
exception_handler
(loop: object, context: Any = None)
tests/test_to_thread.py:333
Function
exception_handler
(*args: object, **kwargs: object)
tests/test_taskgroups.py:1518
Function
exit_scope
(scope: CancelScope)
tests/test_taskgroups.py:1583
Function
external_func
(event: Event, token: EventLoopToken)
docs/snippets/threads/event_loop_token.py:7
Function
external_task
()
docs/snippets/cancellation/shielding.py:4
Method
external_thread
()
tests/test_from_thread.py:290
Method
external_thread
()
tests/test_from_thread.py:622
Method
externalthread
()
tests/test_from_thread.py:189
Method
extra_attributes
(self)
src/anyio/abc/_sockets.py:144
Method
extra_attributes
A mapping of the extra attributes to callables that return the corresponding values. If the provider wraps another provider,
src/anyio/_core/_typedattr.py:49
Method
extra_attributes
(self)
src/anyio/streams/stapled.py:60
Method
extra_attributes
(self)
src/anyio/streams/stapled.py:106
Method
extra_attributes
(self)
src/anyio/streams/stapled.py:155
Method
extra_attributes
(self)
src/anyio/streams/text.py:84
Method
extra_attributes
(self)
src/anyio/streams/text.py:120
Method
extra_attributes
(self)
src/anyio/streams/text.py:171
Method
extra_attributes
(self)
src/anyio/streams/buffered.py:51
Method
extra_attributes
(self)
src/anyio/streams/tls.py:293
Method
extra_attributes
(self)
src/anyio/streams/tls.py:400
Method
extra_attributes
(self)
src/anyio/streams/file.py:48
Method
extra_attributes
(self)
tests/test_typedattr.py:16
Function
factory
( family: socket.AddressFamily, kind: socket.SocketKind, *, bound: bool = Fals
tests/test_sockets.py:189
Function
fail
(name: str)
tests/test_taskgroups.py:1309
Method
failing_func
()
tests/test_from_thread.py:888
Method
fake_bind
( self: socket.socket, addr: tuple[str, int] | tuple[str, int, int, int] )
tests/test_sockets.py:1335
Function
fake_getaddrinfo
(*args: Any, **kwargs: Any)
tests/test_sockets.py:136
Function
fake_localhost_dns
(monkeypatch: MonkeyPatch)
tests/test_sockets.py:135
Method
fake_rollover
()
tests/test_tempfile.py:100
Function
fake_sleep
()
tests/test_eventloop.py:23
Method
fake_wrap
( transport_stream: AnyByteStream, **kwargs: Any )
tests/test_sockets.py:896
Method
families
(cls)
tests/test_pytest_plugin.py:785
Function
family
(request: SubRequest)
tests/test_sockets.py:151
Method
file_path
(cls, tmp_path_factory: TempPathFactory)
tests/streams/test_file.py:20
Method
file_path
(self, tmp_path: Path)
tests/streams/test_file.py:97
Method
file_path_or_str
(self, request: SubRequest, file_path: Path)
tests/streams/test_file.py:26
Method
filter
(self, record: logging.LogRecord)
tests/conftest.py:97
Function
fixup_module_name
(module: str)
docs/conf.py:40
Function
foo
()
docs/snippets/threads/thread_limiter.py:4
Function
foo
()
docs/snippets/threads/check_cancelled.py:13
Method
foo
()
tests/test_functools.py:423
Method
foo
()
tests/test_from_thread.py:304
Function
free_tcp_port
(free_tcp_port_factory: Callable[[], int])
src/anyio/pytest_plugin.py:402
Function
free_udp_port
(free_udp_port_factory: Callable[[], int])
src/anyio/pytest_plugin.py:407
Method
from_path
Create a file write stream by opening the given file for writing. :param path: path of the file to write to :param append: i
src/anyio/streams/file.py:141
Method
from_socket
Wrap an existing socket object or file descriptor as a socket stream. The newly created socket wrapper takes ownership of the socket
src/anyio/abc/_sockets.py:188
Method
from_socket
Wrap an existing socket object or file descriptor as a UNIX socket stream. The newly created socket wrapper takes ownership of the s
src/anyio/abc/_sockets.py:205
Method
from_socket
Wrap an existing socket object or file descriptor as a socket listener. The newly created listener takes ownership of the socket bei
src/anyio/abc/_sockets.py:250
Method
from_socket
Wrap an existing socket object or file descriptor as a connected UDP socket. The newly created socket wrapper takes ownership of the
src/anyio/abc/_sockets.py:324
Method
from_socket
Wrap an existing socket object or file descriptor as a UNIX datagram socket. The newly created socket wrapper takes ownershi
src/anyio/abc/_sockets.py:353
Method
from_socket
Wrap an existing socket object or file descriptor as a connected UNIX datagram socket. The newly created socket wrapper take
src/anyio/abc/_sockets.py:383
Function
func
(future: object)
tests/test_to_thread.py:317
Function
func
()
tests/test_itertools.py:90
Method
func
(x: int)
tests/test_functools.py:39
Method
func
(x: int)
tests/test_functools.py:72
Method
func
(x: int, y: int)
tests/test_functools.py:438
Method
func
()
tests/test_from_thread.py:799
Method
func
()
tests/test_itertools.py:891
Function
g
()
tests/test_taskgroups.py:614
Function
generator_part
()
tests/test_taskgroups.py:1453
Method
get_backend_and_add
(a: int, b: int)
tests/test_from_thread.py:406
Method
get_current_task
(cls)
src/anyio/_backends/_asyncio.py:3268
Method
get_dummyattr
(self)
tests/test_typedattr.py:12
Method
get_next_value
()
src/anyio/_core/_fileio.py:984
Method
get_running_tasks
(cls)
src/anyio/abc/_eventloop.py:432
Method
get_running_tasks
(cls)
src/anyio/_backends/_asyncio.py:3276
Method
get_token
()
tests/test_from_thread.py:253
Method
get_token
()
tests/test_from_thread.py:315
Method
get_var
()
tests/test_from_thread.py:998
Method
getaddrinfo
( cls, host: bytes | str | None, port: str | int | None, *, family: in
src/anyio/_backends/_asyncio.py:3027
Method
getnameinfo
( cls, sockaddr: IPSockAddrType, flags: int = 0 )
src/anyio/_backends/_asyncio.py:3050
Function
group_task
( *, task_status: TaskStatus[TaskGroup] = anyio.TASK_STATUS_IGNORED )
tests/test_taskgroups.py:1965
Function
handle
(stream: SocketStream)
tests/test_sockets.py:2089
Function
handle
(client: TLSStream)
docs/snippets/streams/tls_server.py:7
Function
handle
(client: SocketStream)
docs/snippets/networking/fds_server.py:7
Function
handle
(client: SocketStream)
docs/snippets/networking/unix_server.py:5
Function
handle
(client: SocketStream)
docs/snippets/networking/tcp_server.py:5
Function
handle
(client_stream: SocketStream)
docs/snippets/testing/free_tcp_port.py:6
Function
handle
(client_stream: SocketStream)
docs/snippets/testing/free_tcp_port_factory.py:6
Method
handle
(stream: SocketStream)
tests/test_sockets.py:1175
Method
handle
(stream: SocketStream)
tests/test_sockets.py:2001
← previous
next →
1,001–1,100 of 2,553, ranked by callers