MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Methodtaskfunc
(index: int)
tests/test_lowlevel.py:95
Methodtaskfunc
()
tests/test_from_thread.py:742
Methodtaskfunc
()
tests/test_taskgroups.py:1768
Methodtaskfunc
()
tests/test_taskgroups.py:2333
Methodtaskfunc
()
tests/test_synchronization.py:788
Methodtaskfunc1
()
tests/test_synchronization.py:248
Methodtell
Return the current stream position. .. note:: Not all file descriptors are seekable. :return: the current absolute position
src/anyio/streams/file.py:118
Methodterminate
Terminates the process, gracefully if possible. On Windows, this calls ``TerminateProcess()``. On POSIX systems, this sends
src/anyio/abc/_subprocesses.py:25
Methodterminate
(self)
src/anyio/_backends/_asyncio.py:1256
Methodtest_absolute
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:256
Methodtest_accept
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1028
Methodtest_accept
(self, socket_path_or_str: Path | str)
tests/test_sockets.py:1969
Methodtest_accept_after_close
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1057
Methodtest_aclose
(self, stapled: StapledByteStream)
tests/streams/test_stapled.py:91
Methodtest_aclose
(self, stapled: StapledObjectStream[str])
tests/streams/test_stapled.py:236
Methodtest_aclose_during_send
(self, free_udp_port: int)
tests/test_sockets.py:2196
Methodtest_aclose_during_send
(self, free_udp_port: int)
tests/test_sockets.py:2432
Methodtest_aclose_forcefully
(self, server_addr: tuple[str, int])
tests/test_sockets.py:687
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, server_addr: tuple[str, int] )
tests/test_sockets.py:711
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, family: AnyIPAddressFamily, accepting: bool )
tests/test_sockets.py:1146
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1825
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, socket_path: Path )
tests/test_sockets.py:2071
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
(self)
tests/test_sockets.py:2328
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, family: AnyIPAddressFamily )
tests/test_sockets.py:2602
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, )
tests/test_sockets.py:2984
Methodtest_aclose_in_cancelled_scope_raises_cancelled_exc
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:3223
Methodtest_aclose_waits_for_fd_release
Regression: ``UDPSocket.aclose`` must not return before the FD is released. ``AsyncResource.aclose`` is documented as "close the resource".
tests/test_sockets.py:2163
Methodtest_aclose_waits_for_fd_release
Regression: ``ConnectedUDPSocket.aclose`` must not return before the FD is released. Same race as ``UDPSocket.aclose``; see that test for the
tests/test_sockets.py:2409
Methodtest_acquire_cancelled
(self)
tests/test_synchronization.py:1015
Methodtest_acquire_nowait
(self)
tests/test_synchronization.py:91
Methodtest_acquire_nowait
(self)
tests/test_synchronization.py:382
Methodtest_acquire_nowait
(self)
tests/test_synchronization.py:609
Methodtest_acquire_nowait
(self)
tests/test_synchronization.py:1044
Methodtest_acquire_nowait_wouldblock
(self)
tests/test_synchronization.py:96
Methodtest_acquire_nowait_wouldblock
(self)
tests/test_synchronization.py:387
Methodtest_acquire_on_behalf_of_nowait
(self)
tests/test_synchronization.py:1054
Methodtest_acquire_race
Test against a race condition: when a task waiting on acquire() is rescheduled but another task snatches the last available slot, the
tests/test_synchronization.py:671
Methodtest_acquire_twice_async
(self, fast_acquire: bool)
tests/test_synchronization.py:106
Methodtest_acquire_twice_sync
(self)
tests/test_synchronization.py:114
Methodtest_aexit_with_exception
Test that when the portal exits with an exception, all tasks are cancelled.
tests/test_from_thread.py:616
Methodtest_aexit_without_exception
Test that when the portal exits, it waits for all tasks to finish.
tests/test_from_thread.py:648
Functiontest_all_attributes
Check that all exported functions and classes of all public modules are present in the __all__ attribute of the module.
tests/test_all_attributes.py:13
Methodtest_alpn_negotiation
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:259
Functiontest_already_cancelled
()
tests/test_futures.py:70
Functiontest_already_closed
()
tests/test_taskgroups.py:62
Methodtest_always_checkpoint
(self)
tests/test_functools.py:272
Methodtest_anchor_property
(self)
tests/test_fileio.py:226
Methodtest_append_file
(self, file_path: Path)
tests/streams/test_file.py:107
Functiontest_args_kwargs
Test that partial() can be used to pass keyword arguments.
tests/test_to_interpreter.py:42
Methodtest_args_kwargs_cache_key
(self)
tests/test_functools.py:222
Functiontest_arguments_passed_through
Regression test ensuring all arguments accepted by ``open_process()`` are passed through to the backend's ``open_process()``.
tests/test_subprocesses.py:385
Functiontest_as_completed_early_exit
()
tests/test_concurrency_utils.py:99
Functiontest_as_completed_naming
()
tests/test_concurrency_utils.py:62
Functiontest_as_completed_no_coroutines
()
tests/test_concurrency_utils.py:79
Functiontest_as_completed_ordering
()
tests/test_concurrency_utils.py:42
Functiontest_as_completed_propagates_exception
()
tests/test_concurrency_utils.py:85
Methodtest_as_posix
(self)
tests/test_fileio.py:265
Methodtest_as_uri
(self)
tests/test_fileio.py:268
Methodtest_async_context_manager_error
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:860
Methodtest_async_context_manager_error_ignore
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:873
Methodtest_async_context_manager_exception_in_task_group
Regression test for #381.
tests/test_from_thread.py:883
Methodtest_async_context_manager_success
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:851
Functiontest_async_fixture_in_test_class
(testdir: Pytester)
tests/test_pytest_plugin.py:591
Functiontest_async_fixture_params
(testdir: Pytester)
tests/test_pytest_plugin.py:640
Functiontest_async_fixture_teardown_after_sync_test
(testdir: Pytester)
tests/test_pytest_plugin.py:320
Methodtest_async_iteration
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:76
Functiontest_asyncgen_fixture_in_test_class
(testdir: Pytester)
tests/test_pytest_plugin.py:615
Functiontest_asyncio
(testdir: Pytester, caplog: LogCaptureFixture)
tests/test_pytest_plugin.py:99
Functiontest_asyncio_call_graph
(native: bool)
tests/test_taskgroups.py:2295
Functiontest_asyncio_cancel_native_task
()
tests/test_to_thread.py:230
Methodtest_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:172
Methodtest_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:687
Methodtest_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:870
Functiontest_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:307
Functiontest_asyncio_no_recycle_stopping_worker
Regression test for #323.
tests/test_to_thread.py:356
Functiontest_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:280
Functiontest_asyncio_run_does_not_leak_event_loop
Regression test for #1203. Ensure we don't leak the root task and event loop in when caching it in a RunVar.
tests/test_to_thread.py:508
Methodtest_asyncio_run_sync_called
Regression test for #357.
tests/test_from_thread.py:1008
Functiontest_asyncio_run_sync_multiple
Regression test for #304.
tests/test_to_thread.py:342
Functiontest_asyncio_run_sync_no_asyncio_run
Test that the thread pool shutdown callback does not raise an exception.
tests/test_to_thread.py:328
Functiontest_asyncio_worker_reused_after_cancelled_call
Regression test for a worker thread being leaked when the call was cancelled after it had been queued for the worker, but before the worker t
tests/test_to_thread.py:246
Functiontest_asyncio_worker_thread_loop_closed_during_result_report
Regression test for #1265. Pause result delivery after the worker has observed an open event loop, then let the runner close the loop before
tests/test_to_thread.py:138
Methodtest_asynciter
(self)
tests/test_itertools.py:419
Methodtest_asynciter
(self)
tests/test_itertools.py:598
Methodtest_asynciter
(self)
tests/test_itertools.py:966
Methodtest_asynciter_has_initial
(self)
tests/test_functools.py:469
Methodtest_asynciter_no_initial
(self)
tests/test_functools.py:457
Methodtest_asynciter_variants
(self)
tests/test_itertools.py:119
Functiontest_asynclib_detection
()
tests/test_to_thread.py:225
Functiontest_auto_mode
(testdir: Pytester)
tests/test_pytest_plugin.py:692
Functiontest_auto_mode_cmdline
(testdir: Pytester)
tests/test_pytest_plugin.py:716
Functiontest_auto_mode_conflict_warning
(testdir: Pytester)
tests/test_pytest_plugin.py:734
Functiontest_autouse_async_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:200
Methodtest_bad_func_argument
(self)
tests/test_functools.py:66
Methodtest_bad_init_type
(self)
tests/test_synchronization.py:761
Methodtest_bad_init_value
(self)
tests/test_synchronization.py:766
Methodtest_bad_release
(self)
tests/test_synchronization.py:812
Methodtest_bad_type
(self)
tests/test_sockets.py:3333
Methodtest_base_exception
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_taskgroups.py:2402
Methodtest_basic_cases
(self)
tests/test_itertools.py:152
← previousnext →1,501–1,600 of 2,553, ranked by callers