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_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:664
Method
test_basic_cases
(self)
tests/test_itertools.py:688
Method
test_basic_cases
(self)
tests/test_itertools.py:769
Method
test_basic_cases
(self)
tests/test_itertools.py:860
Method
test_basic_cases
(self)
tests/test_itertools.py:898
Method
test_basic_cases
(self)
tests/test_itertools.py:1002
Method
test_basic_slices
(self)
tests/test_itertools.py:571
Function
test_bidirectional_stream
()
tests/streams/test_text.py:108
Method
test_bind_failure_closes_socket
( self, family: AnyIPAddressFamily, monkeypatch: MonkeyPatch )
tests/test_sockets.py:2141
Method
test_bind_link_local
(self)
tests/test_sockets.py:1228
Method
test_bind_twice
Test that the previous socket is removed before binding to the path.
tests/test_sockets.py:2028
Method
test_borrow
(self)
tests/test_synchronization.py:775
Method
test_borrow_twice
(self)
tests/test_synchronization.py:802
Function
test_buffered_connectable
()
tests/streams/test_buffered.py:132
Function
test_buffered_stream
()
tests/streams/test_buffered.py:113
Function
test_buffered_stream_receive_invalid_max_bytes
(max_bytes: int)
tests/streams/test_buffered.py:160
Function
test_build_lazy_map_without_module_file
Test the eager fallback when a module has no __file__ attribute.
tests/test_lazyimport.py:136
Method
test_bytes
(self)
tests/test_fileio.py:156
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:607
Method
test_call_async_cancellation
(self, target_backend: str)
tests/test_from_thread.py:450
Method
test_call_async_cancellation_cleanup
( self, target_backend: str, abandon_on_cancel: bool, cleanup_raises: bool )
tests/test_from_thread.py:480
Method
test_call_async_cancellation_does_not_block
( self, target_backend: str )
tests/test_from_thread.py:540
Method
test_call_async_context_variable
(self, target_backend: str)
tests/test_from_thread.py:434
Method
test_call_async_corofunc
(self, target_backend: str)
tests/test_from_thread.py:405
Method
test_call_async_exception
(self)
tests/test_from_thread.py:421
Method
test_call_corofunc
(self)
tests/test_from_thread.py:399
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:600
Method
test_call_portal_from_event_loop_thread
(self)
tests/test_from_thread.py:673
Method
test_call_stopped_portal
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:712
Method
test_call_superclass_method
(self)
tests/test_contextmanagers.py:124
Method
test_call_superclass_method
(self)
tests/test_contextmanagers.py:228
Function
test_cancel
()
tests/test_taskgroups.py:533
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:2430
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:703
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:667
Function
test_cancel_before_entering_task_group
()
tests/test_taskgroups.py:1906
Function
test_cancel_cascade
()
tests/test_taskgroups.py:1167
Function
test_cancel_child_task_when_host_is_shielded
()
tests/test_taskgroups.py:1925
Function
test_cancel_completed_task
()
tests/test_taskgroups.py:1513
Method
test_cancel_counter_nested_scopes
(self)
tests/test_taskgroups.py:1801
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:619
Method
test_cancel_during_acquire_on_behalf_of
Regression test: when acquire_on_behalf_of() acquires the limiter without having to wait and is then cancelled during its can
tests/test_synchronization.py:1062
Method
test_cancel_during_completion
( self, monkeypatch: pytest.MonkeyPatch, raises: bool )
tests/test_from_thread.py:787
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:334
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:360
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:640
Function
test_cancel_from_shielded_scope
()
tests/test_taskgroups.py:904
Function
test_cancel_generator_based_task
()
tests/test_taskgroups.py:1445
Function
test_cancel_host_asyncgen
()
tests/test_taskgroups.py:1053
Method
test_cancel_message_replaced
(self)
tests/test_taskgroups.py:1784
Function
test_cancel_native_future_tasks
()
tests/test_taskgroups.py:1490
Function
test_cancel_native_future_tasks_cancel_scope
()
tests/test_taskgroups.py:1501
Method
test_cancel_portal_future
Regression test for #575.
tests/test_from_thread.py:1057
Function
test_cancel_propagation
()
tests/test_taskgroups.py:613
Function
test_cancel_propagation_with_inner_spawn
()
tests/test_taskgroups.py:1412
Function
test_cancel_reason
()
tests/test_taskgroups.py:2247
Function
test_cancel_receive
()
tests/streams/test_memory.py:172
Function
test_cancel_scope_cleared
()
tests/test_taskgroups.py:706
Function
test_cancel_scope_in_another_task
()
tests/test_taskgroups.py:593
Function
test_cancel_scope_in_asyncgen_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:236
Function
test_cancel_scope_in_child_task
()
tests/test_taskgroups.py:1124
Function
test_cancel_send
()
tests/streams/test_memory.py:184
Function
test_cancel_shielded_checkpoint
(cancel: bool)
tests/test_lowlevel.py:42
Function
test_cancel_shielded_scope
()
tests/test_taskgroups.py:923
Function
test_cancel_shielding_start
Test that if the host task that has spawned a subtask via ``start()`` is cancelled, a shielded cancel scope in the child task will shield it
tests/test_taskgroups.py:2259
Function
test_cancel_twice
Test that the same task can receive two cancellations.
tests/test_taskgroups.py:626
Function
test_cancel_wait_on_thread
()
tests/test_to_thread.py:198
Function
test_cancel_with_nested_task_groups
Regression test for #695.
tests/test_taskgroups.py:373
Function
test_cancel_with_reason
()
tests/test_taskgroups.py:550
Function
test_cancel_worker_thread
Test that when a task running a worker thread is cancelled, the cancellation is not acted on until the thread finishes.
tests/test_to_thread.py:103
Method
test_cancellation_during_creation
(self)
tests/test_tempfile.py:174
Method
test_cancelled_after_acquire
(self)
tests/test_synchronization.py:219
Method
test_cancelled_after_acquire
(self)
tests/test_synchronization.py:729
Method
test_cancelled_during_rollover
(self)
tests/test_tempfile.py:65
Function
test_cancelled_not_caught
()
tests/test_taskgroups.py:966
Function
test_cancelled_parent
()
tests/test_taskgroups.py:1180
Function
test_cancelled_raises_beyond_origin_shielded
()
tests/test_taskgroups.py:1010
Function
test_cancelled_raises_beyond_origin_unshielded
()
tests/test_taskgroups.py:991
Method
test_cancelled_receive_pauses_reading
( self, server_addr: tuple[str, int] )
tests/test_sockets.py:267
Function
test_cancelled_scope_based_checkpoint
Regression test closely related to #698.
tests/test_taskgroups.py:974
Method
test_cancelled_send_breaks_stream
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:64
← previous
next →
1,601–1,700 of 2,553, ranked by callers