MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,163 in github.com/agronholm/anyio

Methodtest_strict_incomplete_async_iterable
(self)
tests/test_itertools.py:173
Methodtest_strict_incomplete_iterable
(self)
tests/test_itertools.py:167
Functiontest_success
()
tests/test_taskgroups.py:67
Methodtest_suffix_property
(self)
tests/test_fileio.py:232
Methodtest_suffixes_property
(self)
tests/test_fileio.py:235
Methodtest_symlink_to
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:801
Functiontest_sync_close
()
tests/streams/test_memory.py:434
Functiontest_task_from_asyncgen_asend
(create_task: bool)
tests/test_taskgroups.py:2323
Functiontest_task_group_cancellation_consume
()
tests/test_signals.py:53
Functiontest_task_group_cancellation_open
()
tests/test_signals.py:38
Functiontest_task_in_sync_spawn_callback
()
tests/test_taskgroups.py:1413
Methodtest_task_name_custom_name
(self)
tests/test_taskgroups.py:2295
Methodtest_task_name_default
(self)
tests/test_taskgroups.py:2279
Functiontest_taskgroup_reentry
Test that entering a TaskGroup more than once raises RuntimeError.
tests/test_taskgroups.py:1732
Methodtest_tcp
(self, addr: str | IPv4Address | IPv6Address)
tests/test_sockets.py:2480
Functiontest_tcp_connectable
(mocker: MockerFixture)
tests/test_sockets.py:2453
Methodtest_tcp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_tcp_port_factory: F
tests/test_pytest_plugin.py:735
Methodtest_tcp_listener_dualstack_disabled
( self, monkeypatch: MonkeyPatch )
tests/test_sockets.py:1078
Methodtest_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
Methodtest_tcp_listener_same_port
( self, local_host: str | None, family: AnyIPAddressFamily, expected_listeners
tests/test_sockets.py:1053
Methodtest_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
Methodtest_temporary_file
(self)
tests/test_tempfile.py:25
Functiontest_terminate
(tmp_path: Path)
tests/test_subprocesses.py:76
Functiontest_text_connectable
()
tests/streams/test_text.py:83
Functiontest_thread_cancelled
()
tests/test_from_thread.py:71
Functiontest_thread_cancelled_and_abandoned
()
tests/test_from_thread.py:95
Functiontest_thread_cancelled_not_in_worker_thread
()
tests/test_from_thread.py:118
Functiontest_timeout_error_with_multiple_cancellations
()
tests/test_taskgroups.py:1093
Functiontest_tls_connectable
( client_context: ssl.SSLContext, server_context: ssl.SSLContext )
tests/streams/test_tls.py:606
Methodtest_tls_explicit_context
(self, client_context: SSLContext)
tests/test_sockets.py:2515
Methodtest_tls_tcp_implicit_hostname
(self, client_context: SSLContext)
tests/test_sockets.py:2523
Methodtest_tls_true
(self)
tests/test_sockets.py:2503
Methodtest_total_tokens_as_kwarg
(self)
tests/test_synchronization.py:946
Methodtest_touch
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:792
Functiontest_triple_nested_shield_checkpoint_in_middle
()
tests/test_taskgroups.py:1162
Functiontest_triple_nested_shield_checkpoint_in_outer
Regression test for #370.
tests/test_taskgroups.py:1138
Methodtest_truediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:155
Methodtest_truediv_preserve_subclass
Test for #1130: Ensure that __truediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:161
Methodtest_truststore_ssl
( self, request: pytest.FixtureRequest, server_context: ssl.SSLContext )
tests/streams/test_tls.py:462
Methodtest_ttl_cache_hit
(self)
tests/test_functools.py:343
Methodtest_ttl_contested_lock
(self, checkpoint: bool)
tests/test_functools.py:390
Methodtest_ttl_expiration_evicts
(self)
tests/test_functools.py:364
Methodtest_ttl_sequential
(self, checkpoint: bool)
tests/test_functools.py:406
Methodtest_type_overloads
(self)
tests/test_functools.py:417
Functiontest_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
Functiontest_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
Methodtest_udp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_udp_port_factory: F
tests/test_pytest_plugin.py:751
Methodtest_uncancel_after_child_task_failed
(self)
tests/test_taskgroups.py:1699
Methodtest_uncancel_after_group_aexit_native_cancel
Closely related to #695.
tests/test_taskgroups.py:1670
Methodtest_uncancel_after_native_cancel
(self)
tests/test_taskgroups.py:1596
Methodtest_uncancel_after_scope_and_native_cancel
(self)
tests/test_taskgroups.py:1613
Methodtest_uncancel_after_scope_cancel
(self)
tests/test_taskgroups.py:1605
Methodtest_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
Methodtest_uncancel_cancelled_scope_based_checkpoint
See also test_cancelled_scope_based_checkpoint.
tests/test_taskgroups.py:1711
Functiontest_unhandled_exception_group
(caplog: pytest.LogCaptureFixture)
tests/test_taskgroups.py:1502
Methodtest_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
Methodtest_unix
(self, path: str | bytes | os.PathLike[str])
tests/test_sockets.py:2494
Functiontest_unix_connectable
(mocker: MockerFixture)
tests/test_sockets.py:2460
Methodtest_unlink
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:807
Methodtest_unlink_missing_file
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:813
Methodtest_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
Methodtest_untyped_caching
(self)
tests/test_functools.py:132
Methodtest_unwrap
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:196
Methodtest_use_uvloop
(self)
tests/test_eventloop.py:120
Methodtest_use_winloop
(self)
tests/test_eventloop.py:128
Functiontest_user_group_arguments
( argname: str, argvalue_factory: Callable[[], Any], event_loop_implementation_name: str | None, )
tests/test_subprocesses.py:356
Methodtest_wait
(self)
tests/test_taskgroups.py:2307
Functiontest_wait_all_tasks_blocked_asend
Test that wait_all_tasks_blocked() does not crash on an `asend()` object.
tests/test_debugging.py:131
Functiontest_wait_all_tasks_blocked_cancelled_task
()
tests/test_debugging.py:146
Methodtest_wait_cancel
(self)
tests/test_synchronization.py:396
Methodtest_wait_for
(self)
tests/test_synchronization.py:487
Functiontest_wait_generator_based_task_blocked
( asyncio_event_loop: asyncio.AbstractEventLoop, )
tests/test_debugging.py:109
Methodtest_wait_no_lock
(self)
tests/test_synchronization.py:436
Functiontest_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
Functiontest_wait_socket
(event: str, socket_type: str)
tests/test_sockets.py:2587
Methodtest_walk
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:823
Methodtest_with_name
(self)
tests/test_fileio.py:849
Methodtest_with_stem
(self)
tests/test_fileio.py:852
Methodtest_with_suffix
(self)
tests/test_fileio.py:855
Methodtest_wrap_async_callable
(self)
tests/test_functools.py:50
Methodtest_wrap_file
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:78
Methodtest_wrap_sync_callable
(self)
tests/test_functools.py:37
Methodtest_wrap_sync_callable
(self)
tests/test_functools.py:82
Methodtest_write
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:63
Methodtest_write_after_close
(self, file_path: Path)
tests/streams/test_file.py:98
Methodtest_write_bytes
( self, tmp_path: pathlib.Path, data: bytes | bytearray | memoryview )
tests/test_fileio.py:866
Methodtest_write_file
(self, file_path: Path)
tests/streams/test_file.py:84
Methodtest_write_text
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:873
Methodtest_writelines
(self)
tests/test_tempfile.py:78
Methodtest_writewithout_rolled
(self)
tests/test_tempfile.py:61
Methodtest_zero_tokens
(self, anyio_backend_name: str)
tests/test_synchronization.py:728
Methodtest_zero_tokens_outside_event_loop
(self)
tests/test_synchronization.py:925
Methodtestdata
(cls)
tests/test_fileio.py:26
Methodtestdatafile
( self, tmp_path_factory: TempPathFactory, testdata: bytes )
tests/test_fileio.py:30
Functionthread_worker
()
tests/test_to_thread.py:34
Functionthread_worker_async
( func: Callable[..., Coroutine[Any, Any, T_co]], *args: Any )
tests/test_from_thread.py:59
Functionthread_worker_sync
(func: Callable[..., T_co], *args: Any)
tests/test_from_thread.py:66
Methodtotal_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
Methodtotal_tokens
(self)
src/anyio/_core/_synchronization.py:677
Methodtotal_tokens
(self)
src/anyio/_backends/_asyncio.py:2068
← previousnext →2,001–2,100 of 2,163, ranked by callers