MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Methoddo_aclose
()
tests/test_sockets.py:2318
Methoddo_aclose
()
tests/test_sockets.py:2592
Methoddo_aclose
()
tests/test_sockets.py:2974
Methoddo_aclose
()
tests/test_sockets.py:3213
Functiondo_something
()
tests/test_taskgroups.py:1168
Functiondo_something
()
docs/snippets/cancellation/cancel_reason.py:4
Functiondo_something
(resource: AsyncResource)
docs/snippets/cancellation/shielded_cleanup.py:5
Methoddo_something
(self)
docs/snippets/synchronization/resource_guard.py:8
Methoddo_stuff
(self)
docs/snippets/threads/blocking_portal_provider.py:11
Functiondouble
(value: int)
tests/test_concurrency_utils.py:117
Functiondrain_stream
(stream: AsyncIterable[bytes], index: int)
src/anyio/_core/_subprocesses.py:75
Methoddrive
(self)
src/anyio/_core/_fileio.py:433
Functiondummy
()
tests/test_taskgroups.py:517
Methoddummy
()
tests/test_to_thread.py:450
Functioneager_task_loop_factory
()
tests/conftest.py:63
Methodeof_received
(self)
src/anyio/_backends/_asyncio.py:1363
Methoderror_received
(self, exc: Exception)
src/anyio/_backends/_asyncio.py:1397
Functionevent_loop_implementation_name
()
tests/conftest.py:191
Methodevent_waiter
()
tests/test_from_thread.py:725
Methodexception
The exception raised by the task, or ``None`` if it finished without raising. :raises TaskNotFinished: if the task has not finished
src/anyio/_core/_tasks.py:390
Functionexception_handler
(loop: object, context: Any = None)
tests/test_to_thread.py:333
Functionexception_handler
(*args: object, **kwargs: object)
tests/test_taskgroups.py:1518
Functionexit_scope
(scope: CancelScope)
tests/test_taskgroups.py:1583
Functionexternal_func
(event: Event, token: EventLoopToken)
docs/snippets/threads/event_loop_token.py:7
Functionexternal_task
()
docs/snippets/cancellation/shielding.py:4
Methodexternal_thread
()
tests/test_from_thread.py:290
Methodexternal_thread
()
tests/test_from_thread.py:622
Methodexternalthread
()
tests/test_from_thread.py:189
Methodextra_attributes
(self)
src/anyio/abc/_sockets.py:144
Methodextra_attributes
A mapping of the extra attributes to callables that return the corresponding values. If the provider wraps another provider,
src/anyio/_core/_typedattr.py:49
Methodextra_attributes
(self)
src/anyio/streams/stapled.py:60
Methodextra_attributes
(self)
src/anyio/streams/stapled.py:106
Methodextra_attributes
(self)
src/anyio/streams/stapled.py:155
Methodextra_attributes
(self)
src/anyio/streams/text.py:84
Methodextra_attributes
(self)
src/anyio/streams/text.py:120
Methodextra_attributes
(self)
src/anyio/streams/text.py:171
Methodextra_attributes
(self)
src/anyio/streams/buffered.py:51
Methodextra_attributes
(self)
src/anyio/streams/tls.py:293
Methodextra_attributes
(self)
src/anyio/streams/tls.py:400
Methodextra_attributes
(self)
src/anyio/streams/file.py:48
Methodextra_attributes
(self)
tests/test_typedattr.py:16
Functionfactory
( family: socket.AddressFamily, kind: socket.SocketKind, *, bound: bool = Fals
tests/test_sockets.py:189
Functionfail
(name: str)
tests/test_taskgroups.py:1309
Methodfailing_func
()
tests/test_from_thread.py:888
Methodfake_bind
( self: socket.socket, addr: tuple[str, int] | tuple[str, int, int, int] )
tests/test_sockets.py:1335
Functionfake_getaddrinfo
(*args: Any, **kwargs: Any)
tests/test_sockets.py:136
Functionfake_localhost_dns
(monkeypatch: MonkeyPatch)
tests/test_sockets.py:135
Methodfake_rollover
()
tests/test_tempfile.py:100
Functionfake_sleep
()
tests/test_eventloop.py:23
Methodfake_wrap
( transport_stream: AnyByteStream, **kwargs: Any )
tests/test_sockets.py:896
Methodfamilies
(cls)
tests/test_pytest_plugin.py:785
Functionfamily
(request: SubRequest)
tests/test_sockets.py:151
Methodfile_path
(cls, tmp_path_factory: TempPathFactory)
tests/streams/test_file.py:20
Methodfile_path
(self, tmp_path: Path)
tests/streams/test_file.py:97
Methodfile_path_or_str
(self, request: SubRequest, file_path: Path)
tests/streams/test_file.py:26
Methodfilter
(self, record: logging.LogRecord)
tests/conftest.py:97
Functionfixup_module_name
(module: str)
docs/conf.py:40
Functionfoo
()
docs/snippets/threads/thread_limiter.py:4
Functionfoo
()
docs/snippets/threads/check_cancelled.py:13
Methodfoo
()
tests/test_functools.py:423
Methodfoo
()
tests/test_from_thread.py:304
Functionfree_tcp_port
(free_tcp_port_factory: Callable[[], int])
src/anyio/pytest_plugin.py:402
Functionfree_udp_port
(free_udp_port_factory: Callable[[], int])
src/anyio/pytest_plugin.py:407
Methodfrom_path
Create a file write stream by opening the given file for writing. :param path: path of the file to write to :param append: i
src/anyio/streams/file.py:141
Methodfrom_socket
Wrap an existing socket object or file descriptor as a socket stream. The newly created socket wrapper takes ownership of the socket
src/anyio/abc/_sockets.py:188
Methodfrom_socket
Wrap an existing socket object or file descriptor as a UNIX socket stream. The newly created socket wrapper takes ownership of the s
src/anyio/abc/_sockets.py:205
Methodfrom_socket
Wrap an existing socket object or file descriptor as a socket listener. The newly created listener takes ownership of the socket bei
src/anyio/abc/_sockets.py:250
Methodfrom_socket
Wrap an existing socket object or file descriptor as a connected UDP socket. The newly created socket wrapper takes ownership of the
src/anyio/abc/_sockets.py:324
Methodfrom_socket
Wrap an existing socket object or file descriptor as a UNIX datagram socket. The newly created socket wrapper takes ownershi
src/anyio/abc/_sockets.py:353
Methodfrom_socket
Wrap an existing socket object or file descriptor as a connected UNIX datagram socket. The newly created socket wrapper take
src/anyio/abc/_sockets.py:383
Functionfunc
(future: object)
tests/test_to_thread.py:317
Functionfunc
()
tests/test_itertools.py:90
Methodfunc
(x: int)
tests/test_functools.py:39
Methodfunc
(x: int)
tests/test_functools.py:72
Methodfunc
(x: int, y: int)
tests/test_functools.py:438
Methodfunc
()
tests/test_from_thread.py:799
Methodfunc
()
tests/test_itertools.py:891
Functiong
()
tests/test_taskgroups.py:614
Functiongenerator_part
()
tests/test_taskgroups.py:1453
Methodget_backend_and_add
(a: int, b: int)
tests/test_from_thread.py:406
Methodget_current_task
(cls)
src/anyio/_backends/_asyncio.py:3268
Methodget_dummyattr
(self)
tests/test_typedattr.py:12
Methodget_next_value
()
src/anyio/_core/_fileio.py:984
Methodget_running_tasks
(cls)
src/anyio/abc/_eventloop.py:432
Methodget_running_tasks
(cls)
src/anyio/_backends/_asyncio.py:3276
Methodget_token
()
tests/test_from_thread.py:253
Methodget_token
()
tests/test_from_thread.py:315
Methodget_var
()
tests/test_from_thread.py:998
Methodgetaddrinfo
( cls, host: bytes | str | None, port: str | int | None, *, family: in
src/anyio/_backends/_asyncio.py:3027
Methodgetnameinfo
( cls, sockaddr: IPSockAddrType, flags: int = 0 )
src/anyio/_backends/_asyncio.py:3050
Functiongroup_task
( *, task_status: TaskStatus[TaskGroup] = anyio.TASK_STATUS_IGNORED )
tests/test_taskgroups.py:1965
Functionhandle
(stream: SocketStream)
tests/test_sockets.py:2089
Functionhandle
(client: TLSStream)
docs/snippets/streams/tls_server.py:7
Functionhandle
(client: SocketStream)
docs/snippets/networking/fds_server.py:7
Functionhandle
(client: SocketStream)
docs/snippets/networking/unix_server.py:5
Functionhandle
(client: SocketStream)
docs/snippets/networking/tcp_server.py:5
Functionhandle
(client_stream: SocketStream)
docs/snippets/testing/free_tcp_port.py:6
Functionhandle
(client_stream: SocketStream)
docs/snippets/testing/free_tcp_port_factory.py:6
Methodhandle
(stream: SocketStream)
tests/test_sockets.py:1175
Methodhandle
(stream: SocketStream)
tests/test_sockets.py:2001
← previousnext →1,001–1,100 of 2,553, ranked by callers