MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Functiontest_terminate
(tmp_path: Path)
tests/test_subprocesses.py:78
Functiontest_text_connectable
()
tests/streams/test_text.py:124
Functiontest_thread_cancelled
()
tests/test_from_thread.py:78
Functiontest_thread_cancelled_and_abandoned
()
tests/test_from_thread.py:102
Functiontest_thread_cancelled_not_in_worker_thread
()
tests/test_from_thread.py:125
Functiontest_timeout_error_with_multiple_cancellations
()
tests/test_taskgroups.py:1216
Functiontest_tls_connectable
( client_context: ssl.SSLContext, server_context: ssl.SSLContext )
tests/streams/test_tls.py:636
Methodtest_tls_explicit_context
(self, client_context: SSLContext)
tests/test_sockets.py:3349
Methodtest_tls_tcp_implicit_hostname
(self, client_context: SSLContext)
tests/test_sockets.py:3357
Methodtest_tls_true
(self)
tests/test_sockets.py:3337
Methodtest_total_tokens_as_kwarg
(self)
tests/test_synchronization.py:1010
Methodtest_touch
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:887
Functiontest_triple_nested_shield_checkpoint_in_middle
()
tests/test_taskgroups.py:1285
Functiontest_triple_nested_shield_checkpoint_in_outer
Regression test for #370.
tests/test_taskgroups.py:1261
Methodtest_truediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:170
Methodtest_truediv_preserve_subclass
Test for #1130: Ensure that __truediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:176
Methodtest_truststore_ssl
( self, request: pytest.FixtureRequest, server_context: ssl.SSLContext )
tests/streams/test_tls.py:492
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:472
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
Functiontest_typedattr_set_subclassing
Test that an attribute set can be subclassed, and that the attributes inherited from the base set are not reported as missing annotations.
tests/test_typedattr.py:30
Methodtest_udp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_udp_port_factory: F
tests/test_pytest_plugin.py:812
Methodtest_uncancel_after_child_task_failed
(self)
tests/test_taskgroups.py:1860
Methodtest_uncancel_after_group_aexit_native_cancel
Closely related to #695.
tests/test_taskgroups.py:1831
Methodtest_uncancel_after_native_cancel
(self)
tests/test_taskgroups.py:1691
Methodtest_uncancel_after_scope_and_native_cancel
(self)
tests/test_taskgroups.py:1708
Methodtest_uncancel_after_scope_cancel
(self)
tests/test_taskgroups.py:1700
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:1809
Methodtest_uncancel_cancelled_scope_based_checkpoint
See also test_cancelled_scope_based_checkpoint.
tests/test_taskgroups.py:1872
Functiontest_unhandled_exception_group
(caplog: pytest.LogCaptureFixture)
tests/test_taskgroups.py:1597
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:105
Methodtest_unix
(self, path: str | bytes | os.PathLike[str])
tests/test_sockets.py:3328
Functiontest_unix_connectable
(mocker: MockerFixture)
tests/test_sockets.py:3294
Methodtest_unlink
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:902
Methodtest_unlink_missing_file
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:908
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:907
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:226
Methodtest_use_uvloop
(self)
tests/test_eventloop.py:136
Methodtest_use_winloop
(self)
tests/test_eventloop.py:144
Functiontest_user_group_arguments
( argname: str, argvalue_factory: Callable[[], Any], event_loop_implementation_name: str | None, )
tests/test_subprocesses.py:362
Methodtest_wait
(self)
tests/test_taskgroups.py:2491
Functiontest_wait_all_tasks_blocked_asend
Test that wait_all_tasks_blocked() does not crash on an `asend()` object.
tests/test_debugging.py:133
Functiontest_wait_all_tasks_blocked_cancelled_task
()
tests/test_debugging.py:148
Methodtest_wait_cancel
(self)
tests/test_synchronization.py:396
Methodtest_wait_for
(self)
tests/test_synchronization.py:516
Functiontest_wait_generator_based_task_blocked
( asyncio_event_loop: asyncio.AbstractEventLoop, )
tests/test_debugging.py:111
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:443
Functiontest_wait_socket
(event: str, socket_type: str)
tests/test_sockets.py:3423
Functiontest_waiting_for_result
()
tests/test_futures.py:35
Functiontest_waiting_with_wait
()
tests/test_futures.py:46
Methodtest_walk
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:918
Methodtest_with_name
(self)
tests/test_fileio.py:944
Methodtest_with_stem
(self)
tests/test_fileio.py:947
Methodtest_with_stem_empty_stem_with_suffix
(self)
tests/test_fileio.py:950
Methodtest_with_suffix
(self)
tests/test_fileio.py:958
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:85
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:70
Methodtest_write_after_close
(self, file_path: Path)
tests/streams/test_file.py:114
Methodtest_write_bytes
( self, tmp_path: pathlib.Path, data: bytes | bytearray | memoryview )
tests/test_fileio.py:969
Methodtest_write_file
(self, file_path: Path)
tests/streams/test_file.py:100
Methodtest_write_text
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:976
Methodtest_writelines
(self)
tests/test_tempfile.py:114
Methodtest_writewithout_rolled
(self)
tests/test_tempfile.py:97
Methodtest_zero_repeat_does_not_consume_iterables
(self)
tests/test_itertools.py:764
Methodtest_zero_tokens
(self)
tests/test_synchronization.py:771
Methodtest_zero_tokens_outside_event_loop
(self)
tests/test_synchronization.py:989
Methodtestdata
(cls)
tests/test_fileio.py:33
Methodtestdatafile
( self, tmp_path_factory: TempPathFactory, testdata: bytes )
tests/test_fileio.py:37
Functionthread_worker
()
tests/test_to_thread.py:36
Functionthread_worker_async
(func: Callable[..., Coroutine[Any, Any, T]], *args: Any)
tests/test_from_thread.py:68
Functionthread_worker_sync
(func: Callable[..., T], *args: Any)
tests/test_from_thread.py:73
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:557
Methodtotal_tokens
(self)
src/anyio/_core/_synchronization.py:685
Methodtotal_tokens
(self)
src/anyio/_backends/_asyncio.py:2211
Methodtotal_tokens
(self)
src/anyio/_backends/_trio.py:876
Methodtruncate
(self, size: int | None = None)
src/anyio/_core/_fileio.py:161
Methodtruncate
(self, size: int | None = None)
src/anyio/_core/_tempfile.py:399
Functiontry_connect
(remote_host: str, event: Event)
src/anyio/_core/_sockets.py:196
Methodtry_lock
()
tests/test_synchronization.py:97
Methodtry_lock
()
tests/test_synchronization.py:388
Methodtypetest_None
(*, task_status: TaskStatus[None])
tests/test_taskgroups.py:2156
Methodtypetest_None_Union
(*, task_status: TaskStatus[int | None])
tests/test_taskgroups.py:2160
Methodtypetest_non_None
(*, task_status: TaskStatus[int])
tests/test_taskgroups.py:2164
Methodtypetest_optional_status
( *, task_status: TaskStatus[int] = TASK_STATUS_IGNORED, )
tests/test_taskgroups.py:2180
Methodtypetest_variance_bad
(*, task_status: TaskStatus[int])
tests/test_taskgroups.py:2174
Methodtypetest_variance_good
(*, task_status: TaskStatus[float])
tests/test_taskgroups.py:2170
Methodudp
Yield a UDP socket whose send buffer is full.
tests/test_sockets.py:2727
Methoduse_condition
()
tests/test_synchronization.py:502
Methoduse_limiter
()
tests/test_synchronization.py:962
Methoduse_lock
()
tests/test_synchronization.py:234
Functionuse_resource
(tasknum: int, lock: Lock)
docs/snippets/synchronization/lock.py:4
← previousnext →2,401–2,500 of 2,553, ranked by callers