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
↓ 2 callers
Method
kill
(self)
src/anyio/_backends/_asyncio.py:1259
↓ 2 callers
Method
locked
Return True if the lock is currently held.
src/anyio/_core/_synchronization.py:198
↓ 2 callers
Method
lstat
(self)
src/anyio/_core/_fileio.py:761
↓ 2 callers
Method
make_send
( udp: UDPSocket | ConnectedUDPSocket, peer_path: str )
tests/test_sockets.py:2713
↓ 2 callers
Function
mkdtemp
( suffix: str | None = None, prefix: str | None = None, dir: str | None = None, )
src/anyio/_core/_tempfile.py:568
↓ 2 callers
Function
mkstemp
( suffix: str | None = None, prefix: str | None = None, dir: str | None = None, text: bool = F
src/anyio/_core/_tempfile.py:528
↓ 2 callers
Function
move_on_at
Create a cancel scope with a deadline that expires after the given delay. :param deadline: the deadline before exiting the context block, or
src/anyio/_core/_tasks.py:182
↓ 2 callers
Function
notify_closing
Call this before closing a file descriptor (on Unix) or socket (on Windows). This will cause any `wait_readable` or `wait_writable` calls
src/anyio/_core/_sockets.py:809
↓ 2 callers
Method
open_signal_receiver
( cls, *signals: Signals )
src/anyio/_backends/_trio.py:1451
↓ 2 callers
Method
owner
(self, *, follow_symlinks: bool = True)
src/anyio/_core/_fileio.py:814
↓ 2 callers
Method
read_bytes
(self)
src/anyio/_core/_fileio.py:828
↓ 2 callers
Method
readinto
(self: AsyncFile[bytes], b: WriteableBuffer)
src/anyio/_core/_fileio.py:133
↓ 2 callers
Method
readinto1
(self: AsyncFile[bytes], b: WriteableBuffer)
src/anyio/_core/_fileio.py:136
↓ 2 callers
Method
receive
(self)
src/anyio/streams/text.py:157
↓ 2 callers
Method
release_on_behalf_of
(self, borrower: object)
src/anyio/_backends/_asyncio.py:2289
↓ 2 callers
Method
replace
(self, target: str | pathlib.PurePath | Path)
src/anyio/_core/_fileio.py:885
↓ 2 callers
Function
return_when
(value: int)
tests/test_concurrency_utils.py:20
↓ 2 callers
Method
run
( cls, func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval]], args: tuple[Unpack[Pos
src/anyio/_backends/_trio.py:1080
↓ 2 callers
Method
run_test
Run an async test function. :param test_func: the test function :param kwargs: keyword arguments to call the test function w
src/anyio/abc/_testing.py:63
↓ 2 callers
Method
send
(self, item: str)
src/anyio/streams/text.py:160
↓ 2 callers
Method
send
(self, item: UDPPacketType)
src/anyio/_backends/_asyncio.py:1817
↓ 2 callers
Function
set_deprecated_aliases
(aliases: dict[str, str])
src/anyio/_lazyimport.py:91
↓ 2 callers
Method
shield
``True`` if this scope is shielded from external cancellation. While a scope is shielded, it will not receive cancellations from out
src/anyio/_core/_tasks.py:102
↓ 2 callers
Method
sleep
(cls, delay: float)
src/anyio/_backends/_trio.py:1115
↓ 2 callers
Function
sleep_until
Pause the current task until the given time. :param deadline: the absolute time to wake up at (according to the internal monotonic c
src/anyio/_core/_eventloop.py:114
↓ 2 callers
Function
sleeper
()
docs/snippets/why/anyio_level_cancellation.py:6
↓ 2 callers
Function
starmap
( function: Callable[..., Awaitable[R]], iterable: ( Iterable[Iterable[object] | AsyncIterable
src/anyio/itertools.py:543
↓ 2 callers
Method
start
( self, func: Callable[[Unpack[PosArgsT]], Coroutine[Any, Any, T_co]], *args: Unpack[P
src/anyio/_backends/_asyncio.py:1011
↓ 2 callers
Method
statistics
Return statistics about the current state of this condition. .. versionadded:: 3.0
src/anyio/_core/_synchronization.py:379
↓ 2 callers
Method
statistics
(self)
src/anyio/_backends/_trio.py:719
↓ 2 callers
Method
stop
Signal the portal to shut down. This marks the portal as no longer accepting new calls and exits from :meth:`sleep_until_sto
src/anyio/from_thread.py:226
↓ 2 callers
Function
succeed
()
tests/test_concurrency_utils.py:35
↓ 2 callers
Method
tell
(self)
src/anyio/_core/_tempfile.py:392
↓ 2 callers
Method
terminate
(self)
src/anyio/_backends/_trio.py:392
↓ 2 callers
Method
wait_readable
(cls, obj: FileDescriptorLike)
src/anyio/_backends/_trio.py:1379
↓ 2 callers
Function
wait_writable
Wait until the given object can be written to. :param obj: an object with a ``.fileno()`` method or an integer handle :raises ~anyio.Clo
src/anyio/_core/_sockets.py:787
↓ 2 callers
Method
wait_writable
(cls, obj: FileDescriptorLike)
src/anyio/_backends/_trio.py:1388
↓ 2 callers
Method
walk
( self, top_down: bool = True, on_error: Callable[[OSError], object] | Non
src/anyio/_core/_fileio.py:978
↓ 2 callers
Method
with_name
(self, name: str)
src/anyio/_core/_fileio.py:999
↓ 2 callers
Method
with_stem
(self, stem: str)
src/anyio/_core/_fileio.py:1005
↓ 2 callers
Method
writelines
( self: AsyncFile[bytes], lines: Iterable[ReadableBuffer] )
src/anyio/_core/_fileio.py:149
↓ 2 callers
Function
zip_longest
( *iterables: Iterable[object] | AsyncIterable[object], fillvalue: object = None, )
src/anyio/itertools.py:596
↓ 1 callers
Method
__aenter__
(self)
src/anyio/from_thread.py:201
↓ 1 callers
Method
__aenter__
(self)
src/anyio/_core/_tempfile.py:492
↓ 1 callers
Method
__aenter__
(self)
src/anyio/_core/_synchronization.py:170
↓ 1 callers
Method
__aenter__
(self)
src/anyio/_backends/_trio.py:226
↓ 1 callers
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/from_thread.py:205
↓ 1 callers
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_core/_synchronization.py:173
↓ 1 callers
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
src/anyio/_backends/_trio.py:236
↓ 1 callers
Method
__aexit__
( self, exc_type: object, exc_val: object, exc_tb: object )
tests/test_from_thread.py:394
↓ 1 callers
Method
__aiter__
(self)
tests/test_itertools.py:54
↓ 1 callers
Method
__anext__
(self)
src/anyio/itertools.py:124
↓ 1 callers
Method
__asynccontextmanager__
Implement your async context manager logic here. This method **must** be decorated with :func:`@asynccontextmanager <context
src/anyio/_core/_contextmanagers.py:187
↓ 1 callers
Method
__asynccontextmanager__
(self)
tests/test_contextmanagers.py:48
↓ 1 callers
Method
__contextmanager__
Implement your context manager logic here. This method **must** be decorated with :func:`@contextmanager <contextlib.context
src/anyio/_core/_contextmanagers.py:95
↓ 1 callers
Method
__contextmanager__
(self)
tests/test_contextmanagers.py:30
↓ 1 callers
Method
__enter__
(self)
src/anyio/_core/_tasks.py:115
↓ 1 callers
Method
__enter__
(self)
src/anyio/_backends/_trio.py:158
↓ 1 callers
Method
__get__
( self, instance: object, owner: type | None = None )
src/anyio/functools.py:218
↓ 1 callers
Method
__init__
( self: TemporaryFile[bytes], mode: OpenBinaryMode = ..., buffering: int = ...,
src/anyio/_core/_tempfile.py:49
↓ 1 callers
Method
__init__
(self, lock: Lock | None = None)
src/anyio/_core/_synchronization.py:282
↓ 1 callers
Method
_call_func
( self, func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval] | T_Retval], args: tupl
src/anyio/from_thread.py:242
↓ 1 callers
Function
_cancel_all_tasks
(loop: AbstractEventLoop)
src/anyio/_backends/_asyncio.py:258
↓ 1 callers
Method
_flush_write_bio
(self)
src/anyio/streams/tls.py:183
↓ 1 callers
Function
_is_type_checking_block
(test: ast.AST)
src/anyio/_lazyimport.py:161
↓ 1 callers
Method
_reparent
Move this active scope from its current parent to ``new_parent``. Used by :meth:`TaskGroup.start` to move a task that has just calle
src/anyio/_backends/_asyncio.py:670
↓ 1 callers
Method
_run_tests_and_fixtures
( self, receive_stream: MemoryObjectReceiveStream[ tuple[Awaitable[T_Retval], asyn
src/anyio/_backends/_asyncio.py:2459
↓ 1 callers
Function
_shutdown_default_executor
Schedule the shutdown of the default executor.
src/anyio/_backends/_asyncio.py:280
↓ 1 callers
Function
_shutdown_process_pool_on_exit
Shuts down worker processes belonging to this event loop. NOTE: this only works when the event loop was started using asyncio.run() or a
src/anyio/_backends/_asyncio.py:1311
↓ 1 callers
Function
_task_started
Return ``True`` if the task has been started and has not finished.
src/anyio/_backends/_asyncio.py:351
↓ 1 callers
Method
absolute
(self)
src/anyio/_core/_fileio.py:468
↓ 1 callers
Method
accept
Accept an incoming connection.
src/anyio/abc/_sockets.py:267
↓ 1 callers
Method
accept
(self)
src/anyio/_backends/_asyncio.py:1683
↓ 1 callers
Method
accept
(self)
src/anyio/_backends/_trio.py:585
↓ 1 callers
Method
aclose
Close the resource.
src/anyio/abc/_resources.py:38
↓ 1 callers
Method
aclose
(self)
src/anyio/streams/buffered.py:41
↓ 1 callers
Method
acquire
Decrement the semaphore value, blocking if necessary.
src/anyio/_core/_synchronization.py:438
↓ 1 callers
Method
acquire
(self)
src/anyio/_backends/_asyncio.py:2260
↓ 1 callers
Method
acquire
(self)
src/anyio/_backends/_trio.py:903
↓ 1 callers
Method
acquire_nowait
Acquire the underlying lock, without blocking. :raises ~anyio.WouldBlock: if the operation would block
src/anyio/_core/_synchronization.py:305
↓ 1 callers
Method
acquire_nowait
(self)
src/anyio/_backends/_trio.py:891
↓ 1 callers
Method
acquire_on_behalf_of
Acquire a token, waiting if necessary for one to become available. :param borrower: the entity borrowing a token
src/anyio/_core/_synchronization.py:615
↓ 1 callers
Method
acquire_on_behalf_of
(self, borrower: object)
src/anyio/_backends/_asyncio.py:2263
↓ 1 callers
Method
acquire_on_behalf_of_nowait
Acquire a token without waiting for one to become available. :param borrower: the entity borrowing a token :raises ~anyio.Wo
src/anyio/_core/_synchronization.py:597
↓ 1 callers
Function
agen_func
()
tests/test_debugging.py:136
↓ 1 callers
Function
async_add
(x: int, y: int)
tests/test_eventloop.py:67
↓ 1 callers
Function
call_soon_threadsafe
(*args: Any)
tests/test_from_thread.py:366
↓ 1 callers
Method
callback
(f: Future[T_Retval])
src/anyio/from_thread.py:251
↓ 1 callers
Method
cancel_shielded_checkpoint
Allow the rescheduling of other tasks. This will give other tasks the opportunity to run, but without checking if the curren
src/anyio/abc/_eventloop.py:130
↓ 1 callers
Method
cancelled_exception_class
(cls)
src/anyio/_backends/_trio.py:1099
↓ 1 callers
Method
checkpoint_if_cancelled
Check if the current task group has been cancelled. This will check if the task has been cancelled, but will not allow other tasks
src/anyio/abc/_eventloop.py:118
↓ 1 callers
Method
chmod
(self, mode: int, *, follow_symlinks: bool = True)
src/anyio/_core/_fileio.py:571
↓ 1 callers
Method
cls_method
(cls, x: int)
tests/test_functools.py:321
↓ 1 callers
Method
connect
(self)
src/anyio/_core/_sockets.py:968
↓ 1 callers
Method
connect
(self)
src/anyio/streams/text.py:187
↓ 1 callers
Method
connect
(self)
src/anyio/streams/buffered.py:210
↓ 1 callers
Method
connect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/_backends/_trio.py:1262
↓ 1 callers
Method
connect_unix
( cls, path: str | bytes, kind: Literal[SocketKind.SOCK_STREAM, SocketKind.SOCK_SEQPAC
src/anyio/_backends/_trio.py:1280
↓ 1 callers
Method
copy_into
( self, target_dir: str | os.PathLike[str], *, follow_symlinks
src/anyio/_core/_fileio.py:524
↓ 1 callers
Function
corofn
()
tests/test_taskgroups.py:1543
← previous
next →
301–400 of 2,553, ranked by callers