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_as_uri
(self)
tests/test_fileio.py:253
Method
test_async_context_manager_error
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:586
Method
test_async_context_manager_error_ignore
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:599
Method
test_async_context_manager_exception_in_task_group
Regression test for #381.
tests/test_from_thread.py:609
Method
test_async_context_manager_success
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:577
Function
test_async_fixture_in_test_class
(testdir: Pytester)
tests/test_pytest_plugin.py:545
Function
test_async_fixture_params
(testdir: Pytester)
tests/test_pytest_plugin.py:594
Function
test_async_fixture_teardown_after_sync_test
(testdir: Pytester)
tests/test_pytest_plugin.py:317
Method
test_async_iteration
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:69
Function
test_asyncgen_fixture_in_test_class
(testdir: Pytester)
tests/test_pytest_plugin.py:569
Function
test_asyncio
(testdir: Pytester, caplog: LogCaptureFixture)
tests/test_pytest_plugin.py:96
Function
test_asyncio_call_graph
(native: bool)
tests/test_taskgroups.py:2083
Function
test_asyncio_cancel_native_task
()
tests/test_to_thread.py:164
Method
test_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:172
Method
test_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:636
Method
test_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:831
Function
test_asyncio_future_callback_partial
Regression test for #272. Ensures that futures with partial callbacks are handled correctly when the root task cannot be determined.
tests/test_to_thread.py:206
Function
test_asyncio_no_recycle_stopping_worker
Regression test for #323.
tests/test_to_thread.py:255
Function
test_asyncio_no_root_task
Regression test for #264. Ensures that to_thread.run_sync() does not raise an error when there is no root task, but instead tries to fin
tests/test_to_thread.py:179
Method
test_asyncio_run_sync_called
Regression test for #357.
tests/test_from_thread.py:734
Function
test_asyncio_run_sync_multiple
Regression test for #304.
tests/test_to_thread.py:241
Function
test_asyncio_run_sync_no_asyncio_run
Test that the thread pool shutdown callback does not raise an exception.
tests/test_to_thread.py:227
Method
test_asynciter
(self)
tests/test_itertools.py:419
Method
test_asynciter
(self)
tests/test_itertools.py:598
Method
test_asynciter
(self)
tests/test_itertools.py:955
Method
test_asynciter_has_initial
(self)
tests/test_functools.py:469
Method
test_asynciter_no_initial
(self)
tests/test_functools.py:457
Method
test_asynciter_variants
(self)
tests/test_itertools.py:119
Function
test_asynclib_detection
()
tests/test_to_thread.py:159
Function
test_auto_mode
(testdir: Pytester)
tests/test_pytest_plugin.py:647
Function
test_auto_mode_conflict_warning
(testdir: Pytester)
tests/test_pytest_plugin.py:672
Function
test_autouse_async_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:197
Method
test_bad_func_argument
(self)
tests/test_functools.py:66
Method
test_bad_init_type
(self)
tests/test_synchronization.py:710
Method
test_bad_init_value
(self, anyio_backend_name: str)
tests/test_synchronization.py:715
Method
test_bad_release
(self)
tests/test_synchronization.py:772
Method
test_bad_type
(self)
tests/test_sockets.py:2499
Method
test_base_exception
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_taskgroups.py:2190
Method
test_basic_cases
(self)
tests/test_itertools.py:152
Method
test_basic_cases
(self)
tests/test_itertools.py:265
Method
test_basic_cases
(self)
tests/test_itertools.py:307
Method
test_basic_cases
(self)
tests/test_itertools.py:365
Method
test_basic_cases
(self)
tests/test_itertools.py:450
Method
test_basic_cases
(self)
tests/test_itertools.py:496
Method
test_basic_cases
(self)
tests/test_itertools.py:542
Method
test_basic_cases
(self)
tests/test_itertools.py:658
Method
test_basic_cases
(self)
tests/test_itertools.py:682
Method
test_basic_cases
(self)
tests/test_itertools.py:758
Method
test_basic_cases
(self)
tests/test_itertools.py:849
Method
test_basic_cases
(self)
tests/test_itertools.py:887
Method
test_basic_cases
(self)
tests/test_itertools.py:991
Method
test_basic_slices
(self)
tests/test_itertools.py:571
Function
test_bidirectional_stream
()
tests/streams/test_text.py:67
Method
test_bind_link_local
(self)
tests/test_sockets.py:1002
Method
test_bind_twice
Test that the previous socket is removed before binding to the path.
tests/test_sockets.py:1658
Method
test_borrow
(self)
tests/test_synchronization.py:735
Method
test_borrow_twice
(self)
tests/test_synchronization.py:762
Function
test_broken_worker_interpreter_deprecation
()
tests/test_deprecations.py:8
Function
test_buffered_connectable
()
tests/streams/test_buffered.py:96
Function
test_buffered_stream
()
tests/streams/test_buffered.py:77
Function
test_buffered_stream_receive_invalid_max_bytes
(max_bytes: int)
tests/streams/test_buffered.py:124
Method
test_bytes
(self)
tests/test_fileio.py:141
Method
test_cache_clear
(self)
tests/test_functools.py:111
Method
test_cache_parameters
(self)
tests/test_functools.py:70
Method
test_cache_same_function_twice
(self)
tests/test_functools.py:236
Method
test_cached_class_method
(self)
tests/test_functools.py:317
Method
test_cached_instance_method
(self)
tests/test_functools.py:330
Method
test_cached_static_method
(self)
tests/test_functools.py:304
Method
test_caching
(self, typed: bool, expected_entries: int)
tests/test_functools.py:152
Method
test_call_anext
(self)
tests/test_from_thread.py:361
Method
test_call_corofunc
(self)
tests/test_from_thread.py:349
Method
test_call_iterables
(self)
tests/test_itertools.py:195
Method
test_call_mixed_iterables
(self)
tests/test_itertools.py:201
Method
test_call_non_corofunc
(self)
tests/test_from_thread.py:354
Method
test_call_portal_from_event_loop_thread
(self)
tests/test_from_thread.py:427
Method
test_call_stopped_portal
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:467
Method
test_call_superclass_method
(self)
tests/test_contextmanagers.py:122
Method
test_call_superclass_method
(self)
tests/test_contextmanagers.py:226
Function
test_cancel
()
tests/test_taskgroups.py:475
Method
test_cancel
Test that the task function gets to run until the first checkpoint when it's cancelled right after creation.
tests/test_taskgroups.py:2218
Method
test_cancel_after_release
Test that a native asyncio cancellation will not cause a lock ownership to get lost between a release() and the resumption of acquire
tests/test_synchronization.py:188
Method
test_cancel_after_release
Test that a native asyncio cancellation will not cause a semaphore ownership to get lost between a release() and the resumption of ac
tests/test_synchronization.py:652
Function
test_cancel_before
Test that starting to_process.run_sync() in a cancelled scope does not cause a worker process to be reserved.
tests/test_to_process.py:85
Function
test_cancel_before_entering_scope
Test that CancelScope.cancel() is honored even if called before entering the scope.
tests/test_taskgroups.py:609
Function
test_cancel_before_entering_task_group
()
tests/test_taskgroups.py:1745
Function
test_cancel_cascade
()
tests/test_taskgroups.py:1044
Function
test_cancel_child_task_when_host_is_shielded
()
tests/test_taskgroups.py:1764
Function
test_cancel_completed_task
()
tests/test_taskgroups.py:1390
Method
test_cancel_counter_nested_scopes
(self)
tests/test_taskgroups.py:1640
Function
test_cancel_during
Test that cancelling an operation on the worker process causes the process to be killed.
tests/test_to_process.py:99
Method
test_cancel_during_acquire
(self, release_first: bool)
tests/test_synchronization.py:126
Method
test_cancel_during_acquire
(self, release_first: bool)
tests/test_synchronization.py:568
Function
test_cancel_during_receive
Test that cancelling a pending receive() operation does not cause an item in the stream to be lost.
tests/streams/test_memory.py:305
Function
test_cancel_during_receive_buffered
Test that sending an item to a memory object stream when the receiver that is next in line has been cancelled will not result in the item bei
tests/streams/test_memory.py:331
Function
test_cancel_exiting_task_group
Test that if a task group is waiting for subtasks to finish and it receives a cancellation, the subtasks are also cancelled and the waiting c
tests/test_taskgroups.py:582
Function
test_cancel_from_shielded_scope
()
tests/test_taskgroups.py:781
Function
test_cancel_generator_based_task
()
tests/test_taskgroups.py:1322
Function
test_cancel_host_asyncgen
()
tests/test_taskgroups.py:930
Method
test_cancel_message_replaced
(self)
tests/test_taskgroups.py:1623
Function
test_cancel_native_future_tasks
()
tests/test_taskgroups.py:1367
← previous
next →
1,301–1,400 of 2,163, ranked by callers