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_cancelled_send_does_not_buffer_the_next_datagram
( self, send: Callable[[bytes], Coroutine[Any, Any, None]], peer: socket.socket )
tests/test_sockets.py:2804
Method
test_cancelled_send_does_not_send_the_next_one
Handing data to a paused transport merely appends it to the write buffer. If a ``send()`` was cancelled after the data was written to
tests/test_sockets.py:277
Function
test_cancelled_wait
()
tests/test_futures.py:77
Function
test_cancelled_waiter_allows_other
()
tests/test_futures.py:151
Function
test_cancelling_already_set_exception
()
tests/test_futures.py:117
Function
test_cancelling_already_set_return_value
()
tests/test_futures.py:110
Function
test_cancelling_with_result
()
tests/test_futures.py:125
Function
test_cancelscope_exit_before_enter
Test that a RuntimeError is raised if one tries to exit a cancel scope before entering.
tests/test_taskgroups.py:1569
Function
test_cancelscope_exit_in_wrong_task
()
tests/test_taskgroups.py:1582
Function
test_cancelscope_propagation
()
tests/test_from_thread.py:133
Function
test_cancelscope_propagation_when_abandoned
()
tests/test_from_thread.py:145
Function
test_cancelscope_wrong_exit_order
Test that a RuntimeError is raised if the task tries to exit cancel scopes in the wrong order.
tests/test_taskgroups.py:1556
Method
test_cannot_connect
(self, socket_path: Path)
tests/test_sockets.py:1859
Function
test_checkpoint
(cancel: bool)
tests/test_lowlevel.py:66
Function
test_checkpoint_if_cancelled
(cancel: bool)
tests/test_lowlevel.py:17
Method
test_checkpoints
(self)
tests/test_itertools.py:398
Method
test_checkpoints
(self)
tests/test_itertools.py:827
Method
test_checkpoints_after_first_result
(self)
tests/test_itertools.py:300
Method
test_checkpoints_after_first_result
(self)
tests/test_itertools.py:358
Method
test_checkpoints_after_first_result
(self)
tests/test_itertools.py:748
Method
test_checkpoints_after_first_result
(self)
tests/test_itertools.py:811
Method
test_checkpoints_buffered_replay
(self)
tests/test_itertools.py:995
Method
test_checkpoints_empty_async_iterable
(self)
tests/test_functools.py:510
Method
test_checkpoints_empty_inputs
(self)
tests/test_itertools.py:137
Method
test_checkpoints_empty_inputs
(self)
tests/test_itertools.py:188
Method
test_checkpoints_empty_inputs
(self)
tests/test_itertools.py:251
Method
test_checkpoints_empty_inputs
(self)
tests/test_itertools.py:435
Method
test_checkpoints_empty_inputs
(self)
tests/test_itertools.py:564
Method
test_checkpoints_empty_iterable
(self)
tests/test_functools.py:500
Method
test_checkpoints_empty_iterable
(self)
tests/test_itertools.py:890
Method
test_checkpoints_empty_iterable
(self)
tests/test_itertools.py:990
Method
test_checkpoints_empty_result
(self)
tests/test_itertools.py:294
Method
test_checkpoints_empty_result
(self)
tests/test_itertools.py:355
Method
test_checkpoints_empty_result
(self)
tests/test_itertools.py:384
Method
test_checkpoints_empty_result
(self)
tests/test_itertools.py:742
Method
test_checkpoints_empty_result
(self)
tests/test_itertools.py:805
Method
test_checkpoints_empty_result_non_cancelled
(self)
tests/test_itertools.py:808
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:347
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:479
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:525
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:658
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:677
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:854
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:940
Method
test_checkpoints_empty_results
(self)
tests/test_itertools.py:1019
Method
test_checkpoints_initial_value
(self)
tests/test_itertools.py:142
Method
test_checkpoints_r_greater_than_pool
(self)
tests/test_itertools.py:297
Method
test_checkpoints_r_greater_than_pool
(self)
tests/test_itertools.py:745
Method
test_checkpoints_replay
(self)
tests/test_itertools.py:440
Method
test_chmod
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:682
Function
test_cleanup_after_native_cancel
Regression test for #832.
tests/test_taskgroups.py:953
Method
test_cleanup_method
(self)
tests/test_tempfile.py:208
Method
test_cleanup_method_with_cancellation
Test that the ``cleanup()`` method removes the directory even if the host task is already cancelled when it is called, and that the p
tests/test_tempfile.py:247
Method
test_clock
Test that ``backend_options`` are passed to ``trio.run()``.
tests/test_eventloop.py:154
Function
test_clone
()
tests/streams/test_memory.py:196
Function
test_clone_closed
()
tests/streams/test_memory.py:207
Method
test_close_after_cancelled_io
( self, socket_path: Path, operation: Literal["receive", "send"] )
tests/test_sockets.py:1776
Method
test_close_during_accept
(self, socket_path: Path)
tests/test_sockets.py:2058
Method
test_close_during_receive
(self, server_addr: tuple[str, int])
tests/test_sockets.py:624
Method
test_close_during_receive
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1745
Method
test_close_during_receive
(self)
tests/test_sockets.py:2294
Method
test_close_during_receive
(self)
tests/test_sockets.py:2568
Method
test_close_during_receive
(self)
tests/test_sockets.py:2956
Method
test_close_during_receive
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:3191
Method
test_close_during_send
(self, server_addr: tuple[str, int])
tests/test_sockets.py:635
Method
test_close_during_send
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1758
Method
test_close_during_send
( self, udp: UDPSocket | ConnectedUDPSocket, send: Callable[[bytes], Coroutine[Any, An
tests/test_sockets.py:2825
Function
test_close_early
Regression test for #490.
tests/test_subprocesses.py:412
Method
test_close_from_other_task
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1130
Method
test_close_on_cancel
(self, file_path: Path)
tests/streams/test_file.py:51
Method
test_close_on_cancel
(self, file_path: Path)
tests/streams/test_file.py:121
Function
test_close_receive_after_item_sent
()
tests/streams/test_memory.py:264
Function
test_close_receive_after_send
()
tests/streams/test_memory.py:385
Function
test_close_receive_clone_while_receiving
()
tests/streams/test_memory.py:140
Function
test_close_receive_while_receiving
()
tests/streams/test_memory.py:234
Function
test_close_receive_while_sending
()
tests/streams/test_memory.py:243
Function
test_close_send_after_item_received
()
tests/streams/test_memory.py:253
Function
test_close_send_clone_while_sending
()
tests/streams/test_memory.py:155
Function
test_close_send_while_receiving
()
tests/streams/test_memory.py:215
Function
test_close_send_while_sending
()
tests/streams/test_memory.py:224
Function
test_close_while_reading
()
tests/test_subprocesses.py:424
Function
test_close_with_stdout_blocked_subprocess
Regression test for #1166. Test that closing a process unblocks a subprocess blocked on writing to stdout (because the pipe buffer is fu
tests/test_subprocesses.py:476
Method
test_closed_state
(self)
tests/test_tempfile.py:142
Method
test_comparison
(self)
tests/test_fileio.py:162
Method
test_concurrent_access
(self)
tests/test_functools.py:205
Method
test_concurrent_aclose_forcefully_closes_socket
( self, server_addr: tuple[str, int] )
tests/test_sockets.py:694
Method
test_concurrent_aclose_forcefully_closes_socket
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1808
Method
test_concurrent_aclose_forcefully_closes_socket
( self, )
tests/test_sockets.py:2309
Method
test_concurrent_aclose_forcefully_closes_socket
( self, family: AnyIPAddressFamily )
tests/test_sockets.py:2583
Method
test_concurrent_aclose_forcefully_closes_socket
( self, )
tests/test_sockets.py:2967
Method
test_concurrent_aclose_forcefully_closes_socket
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:3206
Method
test_concurrent_receive
(self, server_addr: tuple[str, int])
tests/test_sockets.py:611
Method
test_concurrent_receive
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1730
Method
test_concurrent_receive
(self)
tests/test_sockets.py:2277
Method
test_concurrent_receive
(self)
tests/test_sockets.py:2551
Method
test_concurrent_receive
(self)
tests/test_sockets.py:2943
Method
test_concurrent_receive
( self, peer_socket_path: Path, peer_sock: socket.socket )
tests/test_sockets.py:3174
Method
test_concurrent_send
(self, server_addr: tuple[str, int])
tests/test_sockets.py:596
Method
test_concurrent_send
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1713
Method
test_connect_tcp_closes_winner_on_outer_cancellation
A connected stream must be closed if the enclosing cancel scope is cancelled before the connection attempt task group exits.
tests/test_sockets.py:493
← previous
next →
1,701–1,800 of 2,553, ranked by callers