MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

↓ 1 callersMethodrun
(self)
src/anyio/_core/_asyncio_selector_thread.py:130
↓ 1 callersMethodrun_async_from_thread
( cls, func: Callable[[Unpack[PosArgsT]], Coroutine[Any, Any, T_co]], args: tuple[Unpa
src/anyio/abc/_eventloop.py:220
↓ 1 callersMethodrun_asyncgen_fixture
Run an async generator fixture. :param fixture_func: the fixture function :param kwargs: keyword arguments to call the fixtu
src/anyio/abc/_testing.py:35
↓ 1 callersMethodrun_fixture
Run an async fixture. :param fixture_func: the fixture function :param kwargs: keyword arguments to call the fixture functio
src/anyio/abc/_testing.py:49
↓ 1 callersFunctionrun_in_thread
()
tests/test_to_thread.py:233
↓ 1 callersFunctionrun_sync
Call a function in the event loop thread from a worker thread. :param func: a callable :param args: positional arguments for the callabl
src/anyio/from_thread.py:96
↓ 1 callersFunctionrun_sync
Call the given function with the given arguments in a worker thread. If the ``abandon_on_cancel`` option is enabled and the task waiting for
src/anyio/to_thread.py:27
↓ 1 callersMethodrun_sync_from_thread
( cls, func: Callable[[Unpack[PosArgsT]], T_Retval], args: tuple[Unpack[PosArgsT]],
src/anyio/abc/_eventloop.py:230
↓ 1 callersMethodrun_sync_in_worker_thread
( cls, func: Callable[[Unpack[PosArgsT]], T_Retval], args: tuple[Unpack[PosArgsT]],
src/anyio/abc/_eventloop.py:204
↓ 1 callersMethodsamefile
(self, other_path: str | PathLike[str])
src/anyio/_core/_fileio.py:935
↓ 1 callersMethodseek
(self, offset: int, whence: int | None = os.SEEK_SET)
src/anyio/_core/_tempfile.py:385
↓ 1 callersMethodsend
(self, item: bytes)
src/anyio/streams/stapled.py:49
↓ 1 callersMethodsend
(self, item: UNIXDatagramPacketType)
src/anyio/_backends/_trio.py:668
↓ 1 callersMethodsend_eof
(self)
src/anyio/streams/buffered.py:183
↓ 1 callersMethodsend_nowait
Send an item immediately if it can be done without waiting. :param item: the item to send :raises ~anyio.ClosedResourceError
src/anyio/streams/memory.py:224
↓ 1 callersFunctionsend_raw_command
(pickled_cmd: bytes)
src/anyio/to_process.py:70
↓ 1 callersMethodserve
( self, handler: Callable[[TLSStream], Any], task_group: TaskGroup | None = None,
src/anyio/streams/tls.py:373
↓ 1 callersMethodserve
()
tests/test_sockets.py:380
↓ 1 callersMethodsetup_process_pool_exit_at_shutdown
(cls, workers: set[Process])
src/anyio/abc/_eventloop.py:273
↓ 1 callersFunctionsetup_raw_socket
( fam: AddressFamily, bind_addr: tuple[str, int] | tuple[str, int, int, int], *,
src/anyio/_core/_sockets.py:340
↓ 1 callersFunctionshielded_task
()
docs/snippets/why/asyncio_shield_gc.py:5
↓ 1 callersFunctionsleep_sync
()
tests/test_to_thread.py:320
↓ 1 callersMethodsleep_until_stopped
Sleep until :meth:`stop` is called.
src/anyio/from_thread.py:222
↓ 1 callersFunctionsleeper
()
docs/snippets/why/asyncio_edge_cancellation.py:4
↓ 1 callersFunctionsometask
(num: int)
docs/snippets/tasks/create_task.py:4
↓ 1 callersMethodstart
(self)
src/anyio/_core/_asyncio_selector_thread.py:44
↓ 1 callersFunctionstart_another
()
tests/test_taskgroups.py:321
↓ 1 callersMethodstarted
(self, value: T_contra | None = None)
src/anyio/_backends/_trio.py:209
↓ 1 callersMethodstatic_method
(x: int)
tests/test_functools.py:308
↓ 1 callersMethodstatistics
Return statistics about the current state of this stream. .. versionadded:: 3.0
src/anyio/streams/memory.py:339
↓ 1 callersMethodstop
(self, f: asyncio.Task | None = None)
src/anyio/_backends/_asyncio.py:1144
↓ 1 callersMethodtask_done
(_task: asyncio.Task)
src/anyio/_backends/_asyncio.py:894
↓ 1 callersFunctiontask_func
()
tests/test_taskgroups.py:104
↓ 1 callersFunctiontaskfunc1
()
tests/test_to_thread.py:361
↓ 1 callersFunctiontaskfunc2
()
tests/test_to_thread.py:366
↓ 1 callersFunctiontestfunc
()
tests/test_taskgroups.py:92
↓ 1 callersMethodwait
Wait for the task to finish. This method will return as soon as the task has finished, no matter how it happened.
src/anyio/_core/_tasks.py:447
↓ 1 callersMethodwait
(self)
src/anyio/_backends/_asyncio.py:1251
↓ 1 callersMethodwait
(self)
src/anyio/_backends/_trio.py:389
↓ 1 callersMethodwait_all_tasks_blocked
(cls)
src/anyio/abc/_eventloop.py:437
↓ 1 callersMethodwait_all_tasks_blocked
(cls)
src/anyio/_backends/_trio.py:1479
↓ 1 callersFunctionwait_socket_readable
.. deprecated:: 4.7.0 Use :func:`wait_readable` instead. Wait until the given socket has data to be read. .. warning:: Only use
src/anyio/_core/_sockets.py:706
↓ 1 callersFunctionwait_socket_writable
.. deprecated:: 4.7.0 Use :func:`wait_writable` instead. Wait until the given socket can be written to. This does **NOT** work o
src/anyio/_core/_sockets.py:729
↓ 1 callersMethodwith_suffix
(self, suffix: str)
src/anyio/_core/_fileio.py:1019
↓ 1 callersMethodwrap_connected_udp_socket
(cls, sock: socket)
src/anyio/abc/_eventloop.py:398
↓ 1 callersMethodwrap_connected_unix_datagram_socket
( cls, sock: socket )
src/anyio/abc/_eventloop.py:408
↓ 1 callersMethodwrap_listener_socket
(cls, sock: socket)
src/anyio/abc/_eventloop.py:378
↓ 1 callersMethodwrap_stream_socket
(cls, sock: socket)
src/anyio/abc/_eventloop.py:383
↓ 1 callersMethodwrap_udp_socket
(cls, sock: socket)
src/anyio/abc/_eventloop.py:393
↓ 1 callersMethodwrap_unix_datagram_socket
(cls, sock: socket)
src/anyio/abc/_eventloop.py:403
↓ 1 callersMethodwrap_unix_stream_socket
(cls, sock: socket)
src/anyio/abc/_eventloop.py:388
↓ 1 callersFunctionwrapper
(*args: P.args, **kwargs: P.kwargs)
src/anyio/_backends/_trio.py:115
↓ 1 callersMethodwrite
(self: SpooledTemporaryFile[bytes], b: ReadableBuffer)
src/anyio/_core/_tempfile.py:407
Method__aenter__
(self)
src/anyio/abc/_resources.py:26
Method__aenter__
Enter the task group context and allow starting new tasks.
src/anyio/abc/_tasks.py:213
Method__aenter__
(self)
src/anyio/_core/_tempfile.py:96
Method__aenter__
(self)
src/anyio/_core/_tempfile.py:205
Method__aenter__
(self)
src/anyio/_core/_synchronization.py:230
Method__aenter__
(self)
src/anyio/_core/_synchronization.py:286
Method__aenter__
(self)
src/anyio/_core/_synchronization.py:426
Method__aenter__
(self)
src/anyio/_core/_synchronization.py:545
Method__aenter__
(self)
src/anyio/_core/_synchronization.py:673
Method__aenter__
(self: _SupportsAsyncCtxMgr[_T_co, bool | None])
src/anyio/_core/_contextmanagers.py:127
Method__aenter__
(self)
src/anyio/_backends/_asyncio.py:815
Method__aenter__
(self)
src/anyio/_backends/_asyncio.py:2199
Method__aenter__
(self)
src/anyio/_backends/_trio.py:864
Method__aenter__
(self)
tests/test_from_thread.py:391
Method__aenter__
(self)
docs/snippets/contextmanagers/broken_context_manager.py:8
Method__aenter__
(self)
docs/snippets/why/asyncio_cancel_before_start.py:7
Method__aenter__
(self)
docs/snippets/why/anyio_cancel_before_start.py:9
Method__aenter__
(self)
docs/snippets/networking/connectables.py:21
Method__aenter__
(self)
docs/snippets/threads/wrap_async_context_manager.py:7
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/abc/_resources.py:29
Method__aexit__
Exit the task group context waiting for all tasks to finish.
src/anyio/abc/_tasks.py:217
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/anyio/_core/_tempfile.py:112
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/anyio/_core/_tempfile.py:212
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/anyio/_core/_tempfile.py:507
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_core/_synchronization.py:233
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_core/_synchronization.py:289
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_core/_synchronization.py:430
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_core/_synchronization.py:548
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_core/_synchronization.py:676
Method__aexit__
( self: _SupportsAsyncCtxMgr[object, _ExitT_co], exc_type: type[BaseException] | None,
src/anyio/_core/_contextmanagers.py:168
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_backends/_asyncio.py:824
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_backends/_asyncio.py:2202
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_backends/_trio.py:867
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
docs/snippets/contextmanagers/broken_context_manager.py:14
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
docs/snippets/why/asyncio_cancel_before_start.py:10
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
docs/snippets/why/anyio_cancel_before_start.py:12
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
docs/snippets/networking/connectables.py:27
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
docs/snippets/threads/wrap_async_context_manager.py:10
Method__aiter__
(self)
src/anyio/abc/_streams.py:32
Method__aiter__
(self)
src/anyio/abc/_streams.py:128
Method__aiter__
(self)
src/anyio/_backends/_asyncio.py:2345
Method__aiter__
(self)
src/anyio/_backends/_trio.py:952
Method__aiter__
(self)
tests/test_functools.py:489
Method__anext__
(self)
src/anyio/itertools.py:57
Method__anext__
(self)
src/anyio/abc/_streams.py:35
Method__anext__
(self)
src/anyio/abc/_streams.py:131
Method__anext__
(self)
src/anyio/_core/_fileio.py:272
← previousnext →501–600 of 2,553, ranked by callers