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
Function
test_reraise_cancelled_in_excgroup
()
tests/test_taskgroups.py:1916
Method
test_reset_during_send
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:657
Method
test_reset_token_used_on_wrong_runvar
(self)
tests/test_lowlevel.py:112
Method
test_reset_token_used_twice
(self)
tests/test_lowlevel.py:121
Method
test_resolve
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:864
Function
test_result
()
tests/test_futures.py:19
Method
test_retry_after_failed_enter
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:464
Method
test_return_async_generator
(self)
tests/test_contextmanagers.py:184
Method
test_return_bad_type
(self)
tests/test_contextmanagers.py:79
Method
test_return_bad_type
(self)
tests/test_contextmanagers.py:175
Method
test_return_coroutine
(self)
tests/test_contextmanagers.py:202
Method
test_return_generator
(self)
tests/test_contextmanagers.py:88
Method
test_return_self
(self)
tests/test_contextmanagers.py:97
Method
test_return_self
(self)
tests/test_contextmanagers.py:193
Method
test_return_value
(self)
tests/test_taskgroups.py:2349
Function
test_return_value_when_future_not_finished
()
tests/test_futures.py:84
Method
test_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1110
Method
test_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2266
Method
test_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2535
Method
test_rglob
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:581
Method
test_rglob_case_sensitive
(self, populated_tmpdir: Path)
tests/test_fileio.py:602
Method
test_rglob_recurse_symlinks
(self, populated_tmpdir: Path)
tests/test_fileio.py:634
Method
test_rmdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:872
Method
test_rollover_preserves_position
Rollover preserves the position of a partially read file.
tests/test_tempfile.py:133
Method
test_root_property
(self)
tests/test_fileio.py:223
Method
test_rtruediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:192
Method
test_rtruediv_preserve_subclass
Test for #1130: Ensure that __rtruediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:198
Method
test_run_anyio_async_func_from_thread
(self)
tests/test_from_thread.py:236
Method
test_run_async_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:250
Method
test_run_async_from_thread_exception
(self)
tests/test_from_thread.py:224
Method
test_run_async_from_unclaimed_thread
(self)
tests/test_from_thread.py:184
Method
test_run_async_no_event_loop
(self)
tests/test_from_thread.py:243
Method
test_run_asyncgen_from_thread
(self)
tests/test_from_thread.py:172
Method
test_run_corofunc_from_thread
(self)
tests/test_from_thread.py:168
Function
test_run_in_custom_limiter
()
tests/test_to_thread.py:63
Function
test_run_in_thread_cancelled
()
tests/test_to_thread.py:33
Function
test_run_in_thread_exception
()
tests/test_to_thread.py:53
Function
test_run_known_but_uninstalled_backend
(monkeypatch: MonkeyPatch)
tests/test_eventloop.py:99
Function
test_run_natively
(modulename: str)
tests/test_taskgroups.py:91
Function
test_run_non_corofunc
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_eventloop.py:74
Function
test_run_process
( shell: bool, command: str | list[str], event_loop_implementation_name: str | None )
tests/test_subprocesses.py:44
Function
test_run_process_checked
()
tests/test_subprocesses.py:55
Function
test_run_process_connect_to_file
(tmp_path: Path)
tests/test_subprocesses.py:186
Function
test_run_process_inherit_stdout
(capfd: pytest.CaptureFixture[str])
tests/test_subprocesses.py:227
Function
test_run_sync
Test that the function runs in a different interpreter, and the same interpreter in both calls.
tests/test_to_interpreter.py:27
Method
test_run_sync_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:312
Method
test_run_sync_from_thread
(self)
tests/test_from_thread.py:180
Method
test_run_sync_from_thread_exception
(self)
tests/test_from_thread.py:230
Method
test_run_sync_from_thread_pooling
(self)
tests/test_from_thread.py:201
Method
test_run_sync_from_unclaimed_thread
(self)
tests/test_from_thread.py:289
Method
test_run_sync_from_unclaimed_thread_no_token
(self)
tests/test_from_thread.py:303
Function
test_run_sync_in_process_pool
Test that the function runs in a different process, and the same process in both calls.
tests/test_to_process.py:23
Function
test_run_sync_soon_closed_event_loop
(close_during_schedule: bool)
tests/test_from_thread.py:359
Function
test_run_sync_worker_cyclic_references
()
tests/test_to_thread.py:486
Function
test_run_task
Test that anyio.run() on asyncio will work with a callable returning a Future.
tests/test_eventloop.py:64
Function
test_run_unknown_backend
()
tests/test_eventloop.py:91
Method
test_runvar_does_not_share_storage_by_name
(self)
tests/test_lowlevel.py:128
Method
test_samefile
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:878
Function
test_schedule_old_style_coroutine_func
Test that we give a sensible error when a user tries to spawn a task from a generator-style coroutine function.
tests/test_taskgroups.py:1467
Method
test_seek
(self, file_path: Path)
tests/streams/test_file.py:74
Function
test_send
()
tests/streams/test_text.py:58
Method
test_send_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:735
Method
test_send_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1851
Method
test_send_after_close
(self)
tests/test_sockets.py:2354
Method
test_send_after_close
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2630
Method
test_send_after_close
(self, socket_path: Path)
tests/test_sockets.py:3008
Method
test_send_after_close
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:3249
Method
test_send_after_eof
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1174
Method
test_send_after_eof
(self, socket_path: Path)
tests/test_sockets.py:2000
Method
test_send_after_peer_closed
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:757
Function
test_send_bom_emitted_only_once
Encodings that emit a byte order mark must not repeat it on every send, otherwise the peer receives spurious U+FEFF characters (or duplicate
tests/streams/test_text.py:93
Function
test_send_encoding_error
()
tests/streams/test_text.py:82
Method
test_send_eof
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:400
Method
test_send_eof
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1662
Method
test_send_eof
(self, stapled: StapledByteStream)
tests/streams/test_stapled.py:83
Method
test_send_eof
(self, stapled: StapledObjectStream[str])
tests/streams/test_stapled.py:227
Method
test_send_eof_not_implemented
( self, server_context: ssl.SSLContext, ca: CA, force_tlsv12: bool )
tests/streams/test_tls.py:437
Method
test_send_exception_cause_preserved
Test that when connection_lost is called with an exception, the resulting BrokenResourceError from send() has the original exception
tests/test_sockets.py:798
Method
test_send_fds
( self, server_sock: socket.socket, socket_path: Path, tmp_path: Path )
tests/test_sockets.py:1592
Method
test_send_fds_bad_args
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1703
Method
test_send_fds_large_message
(self, tmp_path: Path)
tests/test_sockets.py:1628
Function
test_send_is_unblocked_after_receive_nowait
()
tests/streams/test_memory.py:82
Method
test_send_large_buffer
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:377
Method
test_send_large_buffer
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1519
Method
test_send_nowait_does_not_mask_attribute_error
( self, receive_stream: DummyObjectReceiveStream[str] )
tests/streams/test_stapled.py:218
Method
test_send_nowait_implemented
( self, stapled_with_send_nowait: StapledObjectStream[str], send_stream_with_send_nowa
tests/streams/test_stapled.py:200
Method
test_send_nowait_not_implemented
( self, stapled: StapledObjectStream[str], send_stream: DummyObjectSendStream[str] )
tests/streams/test_stapled.py:208
Function
test_send_nowait_then_receive_nowait
()
tests/streams/test_memory.py:94
Method
test_send_receive
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:354
Method
test_send_receive
( self, server_sock: socket.socket, socket_path_or_str: Path | str )
tests/test_sockets.py:1450
Method
test_send_receive
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2222
Method
test_send_receive
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2488
Method
test_send_receive
(self, socket_path_or_str: Path | str)
tests/test_sockets.py:2901
Method
test_send_receive
( self, socket_path_or_str: Path | str, peer_socket_path_or_str: Path | str, )
tests/test_sockets.py:3122
Method
test_send_receive
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:36
Method
test_send_receive_seqsocket
Verifies the behavior of a SOCK_SEQPACKET socket, which is a connection-oriented socket that preserves message boundaries.
tests/test_sockets.py:1467
Function
test_send_then_receive_nowait
()
tests/streams/test_memory.py:74
Function
test_send_to_natively_cancelled_receiver
Test that if a task waiting on receive.receive() is cancelled and then another task sends an item, said item is not delivered to the task wit
tests/streams/test_memory.py:513
Method
test_send_waits_for_the_os_to_accept_the_datagram
( self, send: Callable[[bytes], Coroutine[Any, Any, None]], peer: socket.socket )
tests/test_sockets.py:2782
Function
test_send_when_cancelled
Test that calling send() in a cancelled scope prevents it from going through with the operation.
tests/streams/test_memory.py:311
← previous
next →
2,201–2,300 of 2,553, ranked by callers