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
test_strict_incomplete_async_iterable
(self)
tests/test_itertools.py:173
Method
test_strict_incomplete_iterable
(self)
tests/test_itertools.py:167
Function
test_success
()
tests/test_taskgroups.py:67
Method
test_suffix_property
(self)
tests/test_fileio.py:232
Method
test_suffixes_property
(self)
tests/test_fileio.py:235
Method
test_symlink_to
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:801
Function
test_sync_close
()
tests/streams/test_memory.py:434
Function
test_task_from_asyncgen_asend
(create_task: bool)
tests/test_taskgroups.py:2323
Function
test_task_group_cancellation_consume
()
tests/test_signals.py:53
Function
test_task_group_cancellation_open
()
tests/test_signals.py:38
Function
test_task_in_sync_spawn_callback
()
tests/test_taskgroups.py:1413
Method
test_task_name_custom_name
(self)
tests/test_taskgroups.py:2295
Method
test_task_name_default
(self)
tests/test_taskgroups.py:2279
Function
test_taskgroup_reentry
Test that entering a TaskGroup more than once raises RuntimeError.
tests/test_taskgroups.py:1732
Method
test_tcp
(self, addr: str | IPv4Address | IPv6Address)
tests/test_sockets.py:2480
Function
test_tcp_connectable
(mocker: MockerFixture)
tests/test_sockets.py:2453
Method
test_tcp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_tcp_port_factory: F
tests/test_pytest_plugin.py:735
Method
test_tcp_listener_dualstack_disabled
( self, monkeypatch: MonkeyPatch )
tests/test_sockets.py:1078
Method
test_tcp_listener_retry_after_partial_failure
Simulate a case where the first bind() succeeds with an ephemeral port, the second bind() fails with EADDRINUSE, and verify that crea
tests/test_sockets.py:1098
Method
test_tcp_listener_same_port
( self, local_host: str | None, family: AnyIPAddressFamily, expected_listeners
tests/test_sockets.py:1053
Method
test_tcp_listener_total_bind_failure
Test for a situation where bind() always fails when other listeners are being bound to the same port as the first listener which was
tests/test_sockets.py:1140
Method
test_temporary_file
(self)
tests/test_tempfile.py:25
Function
test_terminate
(tmp_path: Path)
tests/test_subprocesses.py:76
Function
test_text_connectable
()
tests/streams/test_text.py:83
Function
test_thread_cancelled
()
tests/test_from_thread.py:71
Function
test_thread_cancelled_and_abandoned
()
tests/test_from_thread.py:95
Function
test_thread_cancelled_not_in_worker_thread
()
tests/test_from_thread.py:118
Function
test_timeout_error_with_multiple_cancellations
()
tests/test_taskgroups.py:1093
Function
test_tls_connectable
( client_context: ssl.SSLContext, server_context: ssl.SSLContext )
tests/streams/test_tls.py:606
Method
test_tls_explicit_context
(self, client_context: SSLContext)
tests/test_sockets.py:2515
Method
test_tls_tcp_implicit_hostname
(self, client_context: SSLContext)
tests/test_sockets.py:2523
Method
test_tls_true
(self)
tests/test_sockets.py:2503
Method
test_total_tokens_as_kwarg
(self)
tests/test_synchronization.py:946
Method
test_touch
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:792
Function
test_triple_nested_shield_checkpoint_in_middle
()
tests/test_taskgroups.py:1162
Function
test_triple_nested_shield_checkpoint_in_outer
Regression test for #370.
tests/test_taskgroups.py:1138
Method
test_truediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:155
Method
test_truediv_preserve_subclass
Test for #1130: Ensure that __truediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:161
Method
test_truststore_ssl
( self, request: pytest.FixtureRequest, server_context: ssl.SSLContext )
tests/streams/test_tls.py:462
Method
test_ttl_cache_hit
(self)
tests/test_functools.py:343
Method
test_ttl_contested_lock
(self, checkpoint: bool)
tests/test_functools.py:390
Method
test_ttl_expiration_evicts
(self)
tests/test_functools.py:364
Method
test_ttl_sequential
(self, checkpoint: bool)
tests/test_functools.py:406
Method
test_type_overloads
(self)
tests/test_functools.py:417
Function
test_type_variance
This test does not do anything at run time, but since the test suite is also checked with a static type checker, it ensures that the memory o
tests/streams/test_memory.py:446
Function
test_typedattr_keyerror
Test that if the extra attribute getter raises KeyError, it won't be confused for a missing attribute.
tests/test_typedattr.py:20
Method
test_udp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_udp_port_factory: F
tests/test_pytest_plugin.py:751
Method
test_uncancel_after_child_task_failed
(self)
tests/test_taskgroups.py:1699
Method
test_uncancel_after_group_aexit_native_cancel
Closely related to #695.
tests/test_taskgroups.py:1670
Method
test_uncancel_after_native_cancel
(self)
tests/test_taskgroups.py:1596
Method
test_uncancel_after_scope_and_native_cancel
(self)
tests/test_taskgroups.py:1613
Method
test_uncancel_after_scope_cancel
(self)
tests/test_taskgroups.py:1605
Method
test_uncancel_after_taskgroup_cancelled
Test that a cancel scope only uncancels the host task as many times as it has cancelled that specific task, and won't count child tas
tests/test_taskgroups.py:1648
Method
test_uncancel_cancelled_scope_based_checkpoint
See also test_cancelled_scope_based_checkpoint.
tests/test_taskgroups.py:1711
Function
test_unhandled_exception_group
(caplog: pytest.LogCaptureFixture)
tests/test_taskgroups.py:1502
Method
test_unicode_hostname_idna2008
Test that a unicode host name is encoded to ASCII using IDNA 2008 rather than the standard library's IDNA 2003 before being matched a
tests/streams/test_tls.py:63
Method
test_unix
(self, path: str | bytes | os.PathLike[str])
tests/test_sockets.py:2494
Function
test_unix_connectable
(mocker: MockerFixture)
tests/test_sockets.py:2460
Method
test_unlink
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:807
Method
test_unlink_missing_file
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:813
Method
test_unretrieved_future_exception_server_crash
Test that there won't be any leftover Futures that don't get their exceptions retrieved. See https://github.com/encode/httpc
tests/test_sockets.py:712
Method
test_untyped_caching
(self)
tests/test_functools.py:132
Method
test_unwrap
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:196
Method
test_use_uvloop
(self)
tests/test_eventloop.py:120
Method
test_use_winloop
(self)
tests/test_eventloop.py:128
Function
test_user_group_arguments
( argname: str, argvalue_factory: Callable[[], Any], event_loop_implementation_name: str | None, )
tests/test_subprocesses.py:356
Method
test_wait
(self)
tests/test_taskgroups.py:2307
Function
test_wait_all_tasks_blocked_asend
Test that wait_all_tasks_blocked() does not crash on an `asend()` object.
tests/test_debugging.py:131
Function
test_wait_all_tasks_blocked_cancelled_task
()
tests/test_debugging.py:146
Method
test_wait_cancel
(self)
tests/test_synchronization.py:396
Method
test_wait_for
(self)
tests/test_synchronization.py:487
Function
test_wait_generator_based_task_blocked
( asyncio_event_loop: asyncio.AbstractEventLoop, )
tests/test_debugging.py:109
Method
test_wait_no_lock
(self)
tests/test_synchronization.py:436
Function
test_wait_returns_on_process_exit_with_open_stdout
wait() should return once the process exits, rather than waiting for the piped stdout/stderr to close. Easiest triggered by a grandchild that
tests/test_subprocesses.py:437
Function
test_wait_socket
(event: str, socket_type: str)
tests/test_sockets.py:2587
Method
test_walk
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:823
Method
test_with_name
(self)
tests/test_fileio.py:849
Method
test_with_stem
(self)
tests/test_fileio.py:852
Method
test_with_suffix
(self)
tests/test_fileio.py:855
Method
test_wrap_async_callable
(self)
tests/test_functools.py:50
Method
test_wrap_file
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:78
Method
test_wrap_sync_callable
(self)
tests/test_functools.py:37
Method
test_wrap_sync_callable
(self)
tests/test_functools.py:82
Method
test_write
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:63
Method
test_write_after_close
(self, file_path: Path)
tests/streams/test_file.py:98
Method
test_write_bytes
( self, tmp_path: pathlib.Path, data: bytes | bytearray | memoryview )
tests/test_fileio.py:866
Method
test_write_file
(self, file_path: Path)
tests/streams/test_file.py:84
Method
test_write_text
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:873
Method
test_writelines
(self)
tests/test_tempfile.py:78
Method
test_writewithout_rolled
(self)
tests/test_tempfile.py:61
Method
test_zero_tokens
(self, anyio_backend_name: str)
tests/test_synchronization.py:728
Method
test_zero_tokens_outside_event_loop
(self)
tests/test_synchronization.py:925
Method
testdata
(cls)
tests/test_fileio.py:26
Method
testdatafile
( self, tmp_path_factory: TempPathFactory, testdata: bytes )
tests/test_fileio.py:30
Function
thread_worker
()
tests/test_to_thread.py:34
Function
thread_worker_async
( func: Callable[..., Coroutine[Any, Any, T_co]], *args: Any )
tests/test_from_thread.py:59
Function
thread_worker_sync
(func: Callable[..., T_co], *args: Any)
tests/test_from_thread.py:66
Method
total_tokens
The total number of tokens available for borrowing. This is a read-write property. If the total number of tokens is increased, the
src/anyio/_core/_synchronization.py:549
Method
total_tokens
(self)
src/anyio/_core/_synchronization.py:677
Method
total_tokens
(self)
src/anyio/_backends/_asyncio.py:2068
← previous
next →
2,001–2,100 of 2,163, ranked by callers