MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Functioncache
( # type: ignore[overload-overlap] func: Callable[P, Coroutine[Any, Any, T]], / )
src/anyio/functools.py:257
Methodcache_clear
(self)
src/anyio/functools.py:132
Methodcache_info
(self)
src/anyio/functools.py:119
Methodcache_parameters
(self)
src/anyio/functools.py:124
Methodcallback
(f: object)
src/anyio/_backends/_asyncio.py:1518
Methodcaller
(*, task_status: TaskStatus[CancelScope])
tests/test_from_thread.py:503
Methodcancel
Set the task to a cancelled state. This will interrupt any interruptible asynchronous operation, and will cause any further
src/anyio/_core/_tasks.py:337
Methodcancel
(self, reason: str | None = None)
src/anyio/_backends/_trio.py:170
Methodcancel_called
``True`` if :meth:`cancel` has been called.
src/anyio/_core/_tasks.py:84
Methodcancel_called
(self)
src/anyio/_backends/_asyncio.py:726
Methodcancel_called
(self)
src/anyio/_backends/_trio.py:182
Functioncancel_group
()
tests/test_taskgroups.py:629
Methodcancel_shielded_checkpoint
(cls)
src/anyio/_backends/_trio.py:1111
Methodcancel_target
(_: Future[None])
src/anyio/from_thread.py:396
Functioncancel_when_ready
()
tests/test_taskgroups.py:883
Methodcancel_when_started
(scope: CancelScope)
tests/test_from_thread.py:461
Methodcancelled_caught
``True`` if this scope suppressed a cancellation exception it itself raised. This is typically used to check if any work was interru
src/anyio/_core/_tasks.py:89
Methodcancelled_caught
(self)
src/anyio/_backends/_asyncio.py:730
Methodcancelled_caught
(self)
src/anyio/_backends/_trio.py:186
Methodcancelled_exception_class
Return the exception class that is raised in a task if it's cancelled.
src/anyio/abc/_eventloop.py:104
Methodcancelled_exception_class
(cls)
src/anyio/_backends/_asyncio.py:2632
Functioncanceller
()
tests/test_from_thread.py:89
Methodcapture_socket
(*args: Any, **kwargs: Any)
tests/test_sockets.py:2149
Methodcb
()
src/anyio/_backends/_asyncio.py:3070
Functioncheck_asyncio_bug
(anyio_backend_name: str, family: AnyIPAddressFamily)
tests/test_sockets.py:156
Functioncheck_body_exc
(exc: RuntimeError, /)
tests/test_taskgroups.py:1341
Functioncheck_cancelled
Check if the cancel scope of the host task's running the current worker thread has been cancelled. If the host task's current cancel sco
src/anyio/from_thread.py:670
Methodcheck_cancelled
(cls)
src/anyio/_backends/_asyncio.py:2782
Methodcheck_cancelled
(cls)
src/anyio/_backends/_trio.py:1174
Methodcheck_thread
()
tests/test_to_thread.py:409
Functionchild
()
tests/test_taskgroups.py:558
Methodchild_task
(task_status: TaskStatus[None])
tests/test_taskgroups.py:1816
Functionclient_context
(ca: CA)
tests/conftest.py:154
Functionclient_context
(ca: trustme.CA)
docs/snippets/streams/tls_trustme_fixtures.py:20
Methodclone
Create a clone of this receive stream. Each clone can be closed separately. Only when all clones have been closed will the r
src/anyio/streams/memory.py:145
Methodclose_when_blocked
()
tests/test_sockets.py:2295
Methodclose_when_blocked
()
tests/test_sockets.py:2569
Methodclose_when_blocked
()
tests/test_sockets.py:2957
Methodclose_when_blocked
()
tests/test_sockets.py:3194
Methodclosed
(self)
src/anyio/_core/_tempfile.py:340
Functioncollapse_excgroups
()
docs/snippets/migration/collapse_excgroups.py:14
Functionconnect
(host: str, port: int, tls: bool)
docs/snippets/typedattrs/connect.py:6
Methodconnect
Connect to the remote endpoint. :return: an object stream connected to the remote end :raises ConnectionFailed: if the conne
src/anyio/abc/_streams.py:214
Methodconnect
Connect to the remote endpoint. :return: a bytestream connected to the remote end :raises ConnectionFailed: if the connectio
src/anyio/abc/_streams.py:225
Methodconnect
(self)
tests/streams/test_buffered.py:137
Methodconnect
(self)
tests/streams/test_text.py:129
Methodconnect_and_cancel
(*args: Any)
tests/test_sockets.py:504
Methodconnect_sync
(addr: tuple[str, int])
tests/streams/test_tls.py:568
Methodconnect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/abc/_eventloop.py:278
Methodconnect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/_backends/_asyncio.py:2934
Methodconnect_unix
( cls, path: str | bytes, kind: Literal[SocketKind.SOCK_STREAM, SocketKind.SOCK_SEQPAC
src/anyio/abc/_eventloop.py:285
Methodconnect_unix
( cls, path: str | bytes, kind: Literal[SocketKind.SOCK_STREAM, SocketKind.SOCK_SEQPAC
src/anyio/_backends/_asyncio.py:2947
Methodconnection_lost
(self, exc: Exception | None)
src/anyio/_backends/_asyncio.py:1351
Methodconnection_lost
(self, exc: Exception | None)
src/anyio/_backends/_asyncio.py:1388
Methodconnection_made
(self, transport: asyncio.BaseTransport)
src/anyio/_backends/_asyncio.py:1344
Methodconnection_made
(self, transport: asyncio.BaseTransport)
src/anyio/_backends/_asyncio.py:1381
Functionconsume
(sigiter: AsyncIterable[int])
tests/test_signals.py:54
Functionconsumer
(name: str, receive_stream: MemoryObjectReceiveStream[str])
docs/snippets/streams/memory_stream_cloning.py:11
Methodconvert_item
(item: StrOrBytesPath)
src/anyio/_backends/_trio.py:1226
Methodcoro
The coroutine object that was passed to one of the task-spawning methods in :class:`TaskGroup`.
src/anyio/_core/_tasks.py:351
Methodcoro_fn
()
tests/test_taskgroups.py:2096
Functioncorofunc
()
tests/test_taskgroups.py:1474
Functioncpu_intensive_function
(arg1: str, arg2: str)
docs/snippets/subprocesses/run_in_worker_process.py:6
Functioncrash
()
tests/test_taskgroups.py:1598
Methodcreate
(**kwargs: Any)
tests/test_tempfile.py:68
Methodcreate_cancel_scope
( cls, *, deadline: float = math.inf, shield: bool = False )
src/anyio/_backends/_asyncio.py:2668
Methodcreate_capacity_limiter
(cls, total_tokens: float)
src/anyio/abc/_eventloop.py:199
Methodcreate_capacity_limiter
(cls, total_tokens: float)
src/anyio/_backends/_asyncio.py:2719
Functioncreate_custom_task
( coro: Coroutine[Any, Any, Any], /, **kwargs: Any )
tests/test_taskgroups.py:2206
Methodcreate_event
(cls)
src/anyio/abc/_eventloop.py:178
Methodcreate_event
(cls)
src/anyio/_backends/_asyncio.py:2701
Methodcreate_lock
(cls, *, fast_acquire: bool)
src/anyio/abc/_eventloop.py:183
Methodcreate_lock
(cls, *, fast_acquire: bool)
src/anyio/_backends/_asyncio.py:2705
Methodcreate_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/abc/_eventloop.py:188
Methodcreate_semaphore
( cls, initial_value: int, *, max_value: int | None = None, fast_acqui
src/anyio/_backends/_asyncio.py:2709
Methodcreate_task_group
(cls)
src/anyio/_backends/_asyncio.py:2697
Methodcreate_tcp_listener
(cls, sock: socket)
src/anyio/abc/_eventloop.py:294
Methodcreate_tcp_listener
(cls, sock: socket.socket)
src/anyio/_backends/_asyncio.py:2971
Methodcreate_test_runner
(cls, options: dict[str, Any])
src/anyio/_backends/_asyncio.py:3296
Methodcreate_test_runner
(cls, options: dict[str, Any])
src/anyio/_backends/_trio.py:1485
Methodcreate_udp_socket
( cls, family: AddressFamily, local_address: IPSockAddrType | None, remote_add
src/anyio/abc/_eventloop.py:304
Methodcreate_udp_socket
( cls, family: AddressFamily, local_address: IPSockAddrType | None, remote_add
src/anyio/_backends/_asyncio.py:2979
Methodcreate_unix_datagram_socket
( cls, raw_socket: socket, remote_path: None )
src/anyio/abc/_eventloop.py:315
Methodcreate_unix_datagram_socket
( # type: ignore[override] cls, raw_socket: socket.socket, remote_path: str | bytes | None )
src/anyio/_backends/_asyncio.py:3003
Methodcreate_unix_listener
(cls, sock: socket)
src/anyio/abc/_eventloop.py:299
Methodcreate_unix_listener
(cls, sock: socket.socket)
src/anyio/_backends/_asyncio.py:2975
Functioncurrent_default_thread_limiter
Return the capacity limiter that is used by default to limit the number of concurrent threads. :return: a capacity limiter object :r
src/anyio/to_thread.py:70
Methodcurrent_default_thread_limiter
(cls)
src/anyio/_backends/_trio.py:1440
Methodcurrent_effective_deadline
(cls)
src/anyio/_backends/_asyncio.py:2674
Methodcurrent_time
Return the current value of the event loop's internal clock. :return: the clock value (seconds)
src/anyio/abc/_eventloop.py:95
Methodcurrent_token
(cls)
src/anyio/_backends/_asyncio.py:2624
Methoddata_received
(self, data: bytes)
src/anyio/_backends/_asyncio.py:1358
Methoddatagram_received
(self, data: bytes, addr: IPSockAddrType)
src/anyio/_backends/_asyncio.py:1392
Functiondeactivate_blockbuster
(blockbuster: BlockBuster | None)
tests/conftest.py:128
Methoddeadline
The time (clock value) when this scope is cancelled automatically. Will be ``float('inf')`` if no timeout has been set.
src/anyio/_core/_tasks.py:70
Methoddeadline
(self)
src/anyio/_backends/_asyncio.py:708
Methoddeadline
(self)
src/anyio/_backends/_trio.py:174
Functiondestroy_workers
()
tests/test_to_interpreter.py:18
Methoddo_aclose
()
tests/test_sockets.py:701
Methoddo_aclose
()
tests/test_sockets.py:1815
← previousnext →901–1,000 of 2,553, ranked by callers