MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

↓ 3 callersMethod_notify_self
(self)
src/anyio/_core/_asyncio_selector_thread.py:62
↓ 3 callersMethod_raise_async_exceptions
(self)
src/anyio/_backends/_asyncio.py:2448
↓ 3 callersMethod_restart_cancellation_in_parent
Restart the cancellation effort in the closest directly cancelled parent scope.
src/anyio/_backends/_asyncio.py:651
↓ 3 callersMethodaclose
(self)
src/anyio/_backends/_trio.py:372
↓ 3 callersMethodacquire
(self)
src/anyio/_backends/_trio.py:807
↓ 3 callersMethodacquire_on_behalf_of_nowait
(self, borrower: object)
src/anyio/_backends/_trio.py:897
↓ 3 callersMethodadd_reader
(self, fd: FileDescriptorLike, callback: Callable[[], Any])
src/anyio/_core/_asyncio_selector_thread.py:68
↓ 3 callersFunctionamap
Run the given coroutine function concurrently for multiple argument values. :param func: a coroutine function that takes a single argument
src/anyio/_core/_concurrency_utils.py:141
↓ 3 callersFunctioncall_for_coroutine
Call the given function with the given positional and keyword arguments. :return: the resulting coroutine :raises TypeError: if the retu
src/anyio/abc/_tasks.py:51
↓ 3 callersMethodcheckpoint
(cls)
src/anyio/_backends/_trio.py:1103
↓ 3 callersMethodcleanup
(self)
src/anyio/_core/_tempfile.py:519
↓ 3 callersFunctioncompress
( data: Iterable[T] | AsyncIterable[T], selectors: Iterable[object] | AsyncIterable[object], )
src/anyio/itertools.py:251
↓ 3 callersMethodconnect
(self)
src/anyio/streams/tls.py:439
↓ 3 callersFunctionconvert_ipv6_sockaddr
Convert a 4-tuple IPv6 socket address to a 2-tuple (address, port) format. If the scope ID is nonzero, it is added to the address, separated
src/anyio/_core/_sockets.py:846
↓ 3 callersFunctioncount
(start: int = 0, step: int = 1)
src/anyio/itertools.py:274
↓ 3 callersMethodcurrent_default_thread_limiter
(cls)
src/anyio/abc/_eventloop.py:415
↓ 3 callersMethodcurrent_time
(cls)
src/anyio/_backends/_asyncio.py:2628
↓ 3 callersMethoddrain
(sock: socket.socket)
tests/test_sockets.py:2682
↓ 3 callersFunctiondropwhile
( predicate: Callable[[T], Awaitable[object]], iterable: Iterable[T] | AsyncIterable[T], )
src/anyio/itertools.py:302
↓ 3 callersFunctionfilterfalse
( predicate: Callable[[T], Awaitable[object]], iterable: Iterable[T] | AsyncIterable[T], )
src/anyio/itertools.py:321
↓ 3 callersFunctionfree_tcp_port_factory
()
src/anyio/pytest_plugin.py:392
↓ 3 callersFunctionget_all_backends
Return a tuple of the names of all built-in backends.
src/anyio/_core/_eventloop.py:140
↓ 3 callersFunctionget_coro_name
(coro: Coroutine[Any, Any, object], override: object = None)
src/anyio/abc/_tasks.py:28
↓ 3 callersFunctionget_runner
( backend_name: str, backend_options: dict[str, Any] )
src/anyio/pytest_plugin.py:58
↓ 3 callersFunctionget_selector
()
src/anyio/_core/_asyncio_selector_thread.py:159
↓ 3 callersMethodglob
(self, pattern: str)
src/anyio/_core/_fileio.py:606
↓ 3 callersMethodgroup
(self, *, follow_symlinks: bool = True)
src/anyio/_core/_fileio.py:640
↓ 3 callersFunctiongroupby
( iterable: Iterable[T] | AsyncIterable[T], )
src/anyio/itertools.py:337
↓ 3 callersMethoditerdir
(self)
src/anyio/_core/_fileio.py:744
↓ 3 callersFunctionlru_cache
( *, maxsize: int | None = ..., typed: bool = ..., always_checkpoint: bool = ..., ttl: int
src/anyio/functools.py:277
↓ 3 callersFunctionpairwise
( iterable: Iterable[T] | AsyncIterable[T], )
src/anyio/itertools.py:469
↓ 3 callersMethodrglob
(self, pattern: str)
src/anyio/_core/_fileio.py:903
↓ 3 callersMethodrollover
(self)
src/anyio/_core/_tempfile.py:322
↓ 3 callersFunctionsend
()
tests/streams/test_memory.py:386
↓ 3 callersFunctionset_current_async_library
(asynclib_name: str | None)
src/anyio/_core/_eventloop.py:234
↓ 3 callersFunctionsetup_unix_local_socket
Create a UNIX local socket object, deleting the socket at the given path if it exists. Not available on Windows. :param path: path
src/anyio/_core/_sockets.py:877
↓ 3 callersMethodtell
(self)
src/anyio/_core/_fileio.py:169
↓ 3 callersMethodwait
Wait until the flag has been set. If the flag has already been set when this method is called, it returns immediately.
src/anyio/_core/_synchronization.py:105
↓ 3 callersFunctionwrap_file
Wrap an existing file as an asynchronous file. :param file: an existing file-like object :param limiter: an optional capacity limiter to
src/anyio/_core/_fileio.py:246
↓ 2 callersMethod__aiter__
(self)
src/anyio/_core/_fileio.py:109
↓ 2 callersMethod__enter__
(self)
src/anyio/lowlevel.py:121
↓ 2 callersMethod__enter__
(self)
src/anyio/_backends/_asyncio.py:146
↓ 2 callersMethod__exit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/lowlevel.py:124
↓ 2 callersMethod__exit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | Non
src/anyio/_backends/_asyncio.py:150
↓ 2 callersMethod__exit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_backends/_trio.py:975
↓ 2 callersMethod__init__
(self, handle_exc: bool = False)
tests/test_contextmanagers.py:24
↓ 2 callersFunction_build_lazy_map
( module: ModuleType, )
src/anyio/_lazyimport.py:112
↓ 2 callersMethod_check
(self)
src/anyio/_core/_tempfile.py:316
↓ 2 callersMethod_check_active
(self, coro: Coroutine | None = None)
src/anyio/_backends/_trio.py:254
↓ 2 callersMethod_check_pending
Shortcut for checking if a Future is pending :raises FutureAlreadyFinished: if future was already given a result or exception. :raise
src/anyio/_core/_futures.py:62
↓ 2 callersMethod_convert_runtime_error_msg
(exc: RuntimeError)
src/anyio/_backends/_trio.py:738
↓ 2 callersFunction_is_auto_mode
(config: pytest.Config, mode: str)
src/anyio/pytest_plugin.py:106
↓ 2 callersMethod_notify_next_waiter
Hand a free token to the next task in line, if any.
src/anyio/_backends/_asyncio.py:2239
↓ 2 callersMethod_run_coro
(self)
src/anyio/_core/_tasks.py:322
↓ 2 callersMethod_run_filestream_test
(self, stream: ByteReceiveStream)
tests/streams/test_file.py:29
↓ 2 callersMethod_spawn
( self, coro: Coroutine[Any, Any, T_co], name: object, task_status: _AsyncioTa
src/anyio/_backends/_asyncio.py:886
↓ 2 callersMethod_spawn_task_from_thread
Spawn a new task using the given callable. :param func: a callable :param args: positional arguments to be passed to the cal
src/anyio/from_thread.py:291
↓ 2 callersMethod_timeout
(self)
src/anyio/_backends/_asyncio.py:593
↓ 2 callersFunction_token_or_error
(token: EventLoopToken | None)
src/anyio/from_thread.py:55
↓ 2 callersMethodaclose
(self)
src/anyio/_core/_tempfile.py:309
↓ 2 callersMethodaclose
(self)
src/anyio/streams/text.py:166
↓ 2 callersMethodaclose
(self)
src/anyio/_backends/_asyncio.py:1224
↓ 2 callersMethodacquire_on_behalf_of
(self, borrower: object)
src/anyio/_backends/_trio.py:906
↓ 2 callersMethodacquire_on_behalf_of_nowait
(self, borrower: object)
src/anyio/_backends/_asyncio.py:2249
↓ 2 callersMethodas_posix
(self)
src/anyio/_core/_fileio.py:472
↓ 2 callersMethodas_uri
(self)
src/anyio/_core/_fileio.py:475
↓ 2 callersFunctionasyncgen_add
(a: int, b: int)
tests/test_from_thread.py:59
↓ 2 callersMethodcache_clear
(self)
src/anyio/functools.py:89
↓ 2 callersMethodcache_parameters
(self)
src/anyio/functools.py:86
↓ 2 callersMethodcall
( self, func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval]], *args: Unpack[PosArgs
src/anyio/from_thread.py:321
↓ 2 callersMethodcancel
Cancel this scope immediately. :param reason: a message describing the reason for the cancellation
src/anyio/_core/_tasks.py:60
↓ 2 callersMethodcheckpoint
Check if the task has been cancelled, and allow rescheduling of other tasks. This is effectively the same as running :meth:`checkpoi
src/anyio/abc/_eventloop.py:109
↓ 2 callersMethodcheckpoint_if_cancelled
(cls)
src/anyio/_backends/_trio.py:1107
↓ 2 callersFunctionclaim_worker_thread
( backend_class: type[AsyncBackend], token: object )
src/anyio/_core/_eventloop.py:183
↓ 2 callersMethodclose
Close the stream. This works the exact same way as :meth:`aclose`, but is provided as a special case for the benefit of sync
src/anyio/streams/memory.py:160
↓ 2 callersMethodclose
Close the stream. This works the exact same way as :meth:`aclose`, but is provided as a special case for the benefit of sync
src/anyio/streams/memory.py:306
↓ 2 callersMethodcreate_capacity_limiter
(cls, total_tokens: float)
src/anyio/_backends/_trio.py:1151
↓ 2 callersMethodcreate_event
(cls)
src/anyio/_backends/_trio.py:1133
↓ 2 callersMethodcreate_lock
(cls, *, fast_acquire: bool)
src/anyio/_backends/_trio.py:1137
↓ 2 callersMethodcreate_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/_backends/_trio.py:1141
↓ 2 callersMethodcreate_task
( self, coro: Coroutine[Any, Any, T_co], *, name: object = None, conte
src/anyio/_backends/_asyncio.py:988
↓ 2 callersMethodcreate_udp_socket
( cls, family: socket.AddressFamily, local_address: IPSockAddrType | None, rem
src/anyio/_backends/_trio.py:1303
↓ 2 callersMethodcreate_unix_datagram_socket
( cls, raw_socket: socket.socket, remote_path: None )
src/anyio/_backends/_trio.py:1329
↓ 2 callersMethodcurrent_time
(cls)
src/anyio/_backends/_trio.py:1095
↓ 2 callersMethodcwd
(cls, *, limiter: CapacityLimiter | None = None)
src/anyio/_core/_fileio.py:576
↓ 2 callersMethoddestroy
(self)
src/anyio/to_interpreter.py:44
↓ 2 callersFunctionextract_backend_and_options
(backend: object)
src/anyio/pytest_plugin.py:47
↓ 2 callersFunctionfail
()
tests/test_concurrency_utils.py:32
↓ 2 callersMethodfeed_data
Append data directly into the buffer. Any data in the buffer will be consumed by receive operations before receiving anythin
src/anyio/streams/buffered.py:54
↓ 2 callersFunctionfind_root_task
()
src/anyio/_backends/_asyncio.py:311
↓ 2 callersFunctionfix_package_names
()
src/anyio/_lazyimport.py:70
↓ 2 callersFunctionfree_udp_port_factory
()
src/anyio/pytest_plugin.py:397
↓ 2 callersFunctiongather
( coro1: Coroutine[Any, Any, R], coro2: Coroutine[Any, Any, S], / )
src/anyio/_core/_concurrency_utils.py:28
↓ 2 callersMethodget_loop
Return embedded event loop.
src/anyio/_backends/_asyncio.py:177
↓ 2 callersFunctionget_running_tasks
Return a list of running tasks in the current event loop. :return: a list of task info objects :raises NoEventLoopError: if no supported
src/anyio/_core/_testing.py:68
↓ 2 callersFunctiongettempdir
Asynchronously return the name of the directory used for temporary files. This function wraps `tempfile.gettempdir` and executes it in a bac
src/anyio/_core/_tempfile.py:602
↓ 2 callersFunctionidna2008_resolve
(host: str)
src/anyio/_core/_sockets.py:62
↓ 2 callersFunctioninstall_lazy_importer
()
src/anyio/_lazyimport.py:18
↓ 2 callersFunctionis_anyio_cancellation
(exc: CancelledError)
src/anyio/_backends/_asyncio.py:365
↓ 2 callersMethodis_symlink
(self)
src/anyio/_core/_fileio.py:739
← previousnext →201–300 of 2,553, ranked by callers