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
test_shielded_aclose
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:96
Function
test_shielded_cleanup_after_cancel
Regression test for #832.
tests/test_taskgroups.py:934
Function
test_shielded_deadline
()
tests/test_taskgroups.py:1196
Function
test_shielding
()
tests/test_taskgroups.py:882
Function
test_shielding_immediate_scope_cancelled
()
tests/test_taskgroups.py:1084
Function
test_shielding_mutate
()
tests/test_taskgroups.py:1099
Method
test_shorter_selectors
(self)
tests/test_itertools.py:378
Function
test_single_cancellation_exc
Test that only a single cancellation exception bubbles out of the task group when case it was cancelled via an outer scope and no actual erro
tests/test_taskgroups.py:1621
Method
test_single_thread
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:404
Method
test_single_thread_overlapping
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:421
Method
test_skips_empty_iterables
(self)
tests/test_itertools.py:234
Function
test_sleep_forever
(fake_sleep: AsyncMock)
tests/test_eventloop.py:45
Function
test_sleep_invalid_delay
Invalid delays raise ValueError on all backends.
tests/test_eventloop.py:58
Function
test_sleep_until
(fake_sleep: AsyncMock)
tests/test_eventloop.py:33
Function
test_sleep_until_in_past
(fake_sleep: AsyncMock)
tests/test_eventloop.py:39
Method
test_sniffio
(self, anyio_backend_name: str)
tests/test_from_thread.py:275
Method
test_sniffio
(self, anyio_backend_name: str)
tests/test_from_thread.py:333
Method
test_socket_options
( self, family: AnyIPAddressFamily, server_addr: tuple[str, int] )
tests/test_sockets.py:448
Method
test_socket_options
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1067
Method
test_socket_options
(self, socket_path: Path)
tests/test_sockets.py:1981
Function
test_something
(anyio_backend: str)
docs/snippets/testing/fixture.py:1
Function
test_something
()
docs/snippets/testing/marker.py:7
Function
test_sourceless_install
Test how importing the anyio and anyio.abc packages works in a sourceless (.py files compiled to .pyc and then removed) installation.
tests/test_lazyimport.py:39
Function
test_start_already_closed
()
tests/test_taskgroups.py:173
Function
test_start_called_twice
()
tests/test_taskgroups.py:195
Function
test_start_cancel_after_error
Regression test for #517.
tests/test_taskgroups.py:471
Function
test_start_cancelled
()
tests/test_taskgroups.py:294
Function
test_start_cancels_parent_scope
Regression test for #685 / #710.
tests/test_taskgroups.py:1999
Function
test_start_crash_after_started_call
()
tests/test_taskgroups.py:269
Method
test_start_crash_after_started_call
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:949
Function
test_start_crash_before_started_call
()
tests/test_taskgroups.py:258
Method
test_start_crash_before_started_call
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:939
Function
test_start_exception_delivery
(return_handle: bool)
tests/test_taskgroups.py:458
Function
test_start_native_child_cancelled
()
tests/test_taskgroups.py:336
Function
test_start_native_host_cancelled
()
tests/test_taskgroups.py:312
Function
test_start_no_started_call
()
tests/test_taskgroups.py:283
Method
test_start_no_started_call
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:962
Function
test_start_no_value
()
tests/test_taskgroups.py:186
Method
test_start_no_value
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:905
Method
test_start_non_corofunc
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:927
Function
test_start_not_cancelled_before_started_by_tg
()
tests/test_taskgroups.py:1948
Function
test_start_parent_id
()
tests/test_taskgroups.py:1660
Function
test_start_return_handle_cancel
()
tests/test_taskgroups.py:2029
Function
test_start_return_handle_success
()
tests/test_taskgroups.py:2017
Function
test_start_soon_after_error
()
tests/test_taskgroups.py:111
Function
test_start_soon_closes_coroutines_when_create_task_fails
( suspend: bool, eager: bool )
tests/test_taskgroups.py:129
Function
test_start_soon_parent_id
()
tests/test_taskgroups.py:1643
Function
test_start_soon_while_running
()
tests/test_taskgroups.py:103
Function
test_start_sync_wrapper
()
tests/test_taskgroups.py:209
Function
test_start_sync_wrapper_called_twice
()
tests/test_taskgroups.py:223
Method
test_start_task_soon
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:722
Method
test_start_task_soon_cancel_after_stop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:813
Method
test_start_task_soon_cancel_immediately
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:762
Method
test_start_task_soon_cancel_later
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:749
Method
test_start_task_soon_non_corofunc
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:738
Method
test_start_task_soon_with_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:837
Method
test_start_with_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:972
Method
test_start_with_new_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:678
Method
test_start_with_nonexistent_backend
(self)
tests/test_from_thread.py:706
Method
test_start_with_thread_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:690
Function
test_start_with_value
()
tests/test_taskgroups.py:249
Method
test_start_with_value
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:916
Method
test_start_without_thread_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:698
Method
test_stat
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:883
Function
test_statistics
()
tests/streams/test_memory.py:400
Method
test_statistics
(self)
tests/test_synchronization.py:151
Method
test_statistics
(self)
tests/test_synchronization.py:319
Method
test_statistics
(self)
tests/test_synchronization.py:471
Method
test_statistics
(self)
tests/test_synchronization.py:654
Method
test_statistics
(self)
tests/test_synchronization.py:849
Function
test_stderr_flood
Test that writing large amounts of data to stderr in the worker process won't deadlock the call. Regression test for the worker's stderr not
tests/test_to_process.py:74
Function
test_stdin_input_both_passed
(tmp_path: Path)
tests/test_subprocesses.py:220
Method
test_stem_property
(self)
tests/test_fileio.py:253
Method
test_stepwise
(self)
tests/test_itertools.py:272
Method
test_stepwise
(self)
tests/test_itertools.py:315
Function
test_stopiteration
Test that raising StopIteration in a worker thread raises a RuntimeError on the caller.
tests/test_to_thread.py:381
Method
test_strict_complete_batch
(self)
tests/test_itertools.py:164
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_submodule_access_without_direct_import
Test that accessing an anyio submodule via attribute access, without having imported it directly, imports the submodule.
tests/test_lazyimport.py:142
Function
test_success
()
tests/test_taskgroups.py:72
Method
test_suffix_property
(self)
tests/test_fileio.py:247
Method
test_suffixes_property
(self)
tests/test_fileio.py:250
Method
test_symlink_to
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:896
Function
test_sync_close
()
tests/streams/test_memory.py:460
Function
test_task_from_asyncgen_asend
(create_task: bool)
tests/test_taskgroups.py:2568
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:1536
Function
test_task_name_custom_name
(spawner: str)
tests/test_taskgroups.py:2539
Function
test_task_name_default
(spawner: str)
tests/test_taskgroups.py:2507
Function
test_taskgroup_reentry
Test that entering a TaskGroup more than once raises RuntimeError.
tests/test_taskgroups.py:1893
Method
test_tcp
(self, addr: str | IPv4Address | IPv6Address)
tests/test_sockets.py:3314
Function
test_tcp_connectable
(mocker: MockerFixture)
tests/test_sockets.py:3287
Method
test_tcp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_tcp_port_factory: F
tests/test_pytest_plugin.py:796
Method
test_tcp_listener_dualstack_disabled
( self, monkeypatch: MonkeyPatch )
tests/test_sockets.py:1304
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:1324
Method
test_tcp_listener_same_port
( self, local_host: str | None, family: AnyIPAddressFamily, expected_listeners
tests/test_sockets.py:1279
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:1366
Method
test_temporary_file
(self)
tests/test_tempfile.py:29
← previous
next →
2,301–2,400 of 2,553, ranked by callers