MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

↓ 1 callersMethodcreate
(**kwargs: Any)
tests/test_tempfile.py:179
↓ 1 callersMethodcreate_cancel_scope
( cls, *, deadline: float = math.inf, shield: bool = False )
src/anyio/abc/_eventloop.py:152
↓ 1 callersMethodcreate_task
( self, coro: Coroutine[Any, Any, T_co], *, name: object = None, conte
src/anyio/_backends/_trio.py:263
↓ 1 callersMethodcreate_task_group
(cls)
src/anyio/_backends/_trio.py:1129
↓ 1 callersMethodcreate_tcp_listener
(cls, sock: socket.socket)
src/anyio/_backends/_trio.py:1295
↓ 1 callersMethodcreate_test_runner
(cls, options: dict[str, Any])
src/anyio/abc/_eventloop.py:442
↓ 1 callersMethodcreate_unix_listener
(cls, sock: socket.socket)
src/anyio/_backends/_trio.py:1299
↓ 1 callersFunctioncurrent_default_interpreter_limiter
Return the capacity limiter used by default to limit the number of concurrently running subinterpreters. Defaults to the number of CPU c
src/anyio/to_interpreter.py:231
↓ 1 callersFunctioncurrent_default_process_limiter
Return the capacity limiter that is used by default to limit the number of worker processes. :return: a capacity limiter object
src/anyio/to_process.py:191
↓ 1 callersMethodcurrent_default_thread_limiter
(cls)
src/anyio/_backends/_asyncio.py:3253
↓ 1 callersMethodcurrent_effective_deadline
Return the nearest deadline among all the cancel scopes effective for the current task. :return: - a clock value
src/anyio/abc/_eventloop.py:159
↓ 1 callersMethodcurrent_effective_deadline
(cls)
src/anyio/_backends/_trio.py:1125
↓ 1 callersMethodcurrent_token
Return an object that allows other threads to run code inside the event loop. :return: a token object, specific to the event loop ru
src/anyio/abc/_eventloop.py:85
↓ 1 callersMethodcurrent_token
(cls)
src/anyio/_backends/_trio.py:1091
↓ 1 callersFunctionemit_deprecation_warning
(module_name: str, name: str, target: str)
src/anyio/_lazyimport.py:83
↓ 1 callersFunctionensure_returns_coro
( func: Callable[P, Awaitable[T_Retval]], )
src/anyio/_backends/_trio.py:111
↓ 1 callersMethodexpanduser
(self)
src/anyio/_core/_fileio.py:596
↓ 1 callersMethodfill
(self, link: _TeeLink[T])
src/anyio/itertools.py:91
↓ 1 callersFunctionfill_socket
(sock: socket.socket)
tests/test_sockets.py:226
↓ 1 callersFunctionfinalizer
()
docs/snippets/why/asyncio_shield_shutdown.py:5
↓ 1 callersMethodflush
(self)
src/anyio/_core/_fileio.py:172
↓ 1 callersFunctionfn
()
tests/test_taskgroups.py:1315
↓ 1 callersFunctionfoo
(_: Foo)
tests/test_to_thread.py:490
↓ 1 callersFunctionfoo
(level: int = 0)
docs/snippets/tasks/call_graph.py:6
↓ 1 callersMethodfrom_uri
(cls, uri: str, *, limiter: CapacityLimiter | None = None)
src/anyio/_core/_fileio.py:482
↓ 1 callersMethodfull_match
( self, path_pattern: str, *, case_sensitive: bool | None = None )
src/anyio/_core/_fileio.py:485
↓ 1 callersFunctiongenerator_part
()
tests/test_debugging.py:124
↓ 1 callersFunctiongenfunc
(x: int, y: int)
tests/test_taskgroups.py:2569
↓ 1 callersMethodget_answer
(self)
tests/test_concurrency_utils.py:64
↓ 1 callersMethodget_current_task
(cls)
src/anyio/_backends/_trio.py:1457
↓ 1 callersMethodget_running_tasks
(cls)
src/anyio/_backends/_trio.py:1462
↓ 1 callersMethodgetaddrinfo
( cls, host: bytes | str | None, port: str | int | None, *, family: in
src/anyio/abc/_eventloop.py:334
↓ 1 callersMethodgetaddrinfo
( cls, host: bytes | str | None, port: str | int | None, *, family: in
src/anyio/_backends/_trio.py:1352
↓ 1 callersFunctiongetnameinfo
Look up the host name of an IP address. :param sockaddr: socket address (e.g. (ipaddress, port) for IPv4) :param flags: flags to pass to
src/anyio/_core/_sockets.py:689
↓ 1 callersMethodgetnameinfo
( cls, sockaddr: IPSockAddrType, flags: int = 0 )
src/anyio/abc/_eventloop.py:356
↓ 1 callersMethodgetnameinfo
( cls, sockaddr: IPSockAddrType, flags: int = 0 )
src/anyio/_backends/_trio.py:1373
↓ 1 callersFunctiongettempdirb
Asynchronously return the name of the directory used for temporary files in bytes. This function wraps `tempfile.gettempdirb` and executes i
src/anyio/_core/_tempfile.py:614
↓ 1 callersMethodhandle_handshake_error
Handle an exception raised during the TLS handshake. This method does 3 things: #. Forcefully closes the original stream
src/anyio/streams/tls.py:342
↓ 1 callersFunctionhandle_resource
(resource: Resource)
docs/snippets/why/asyncio_cancel_before_start.py:20
↓ 1 callersFunctionhandler
(stream: SocketStream)
docs/snippets/tasks/start.py:11
↓ 1 callersMethodhardlink_to
( self, target: str | bytes | PathLike[str] | PathLike[bytes] )
src/anyio/_core/_fileio.py:654
↓ 1 callersMethodhome
(cls, *, limiter: CapacityLimiter | None = None)
src/anyio/_core/_fileio.py:663
↓ 1 callersFunctionhost_agen_fn
()
tests/test_taskgroups.py:1069
↓ 1 callersFunctionhost_task
()
tests/test_taskgroups.py:1056
↓ 1 callersFunctionhost_task
()
docs/snippets/why/asyncio_shield_gc.py:10
↓ 1 callersFunctioninner_wrapper
()
src/anyio/_backends/_trio.py:127
↓ 1 callersMethodinstance_method
(self, x: int)
tests/test_functools.py:333
↓ 1 callersMethodis_absolute
(self)
src/anyio/_core/_fileio.py:667
↓ 1 callersMethodis_block_device
(self)
src/anyio/_core/_fileio.py:670
↓ 1 callersMethodis_char_device
(self)
src/anyio/_core/_fileio.py:675
↓ 1 callersMethodis_fifo
(self)
src/anyio/_core/_fileio.py:696
↓ 1 callersMethodis_junction
(self)
src/anyio/_core/_fileio.py:719
↓ 1 callersMethodis_mount
(self)
src/anyio/_core/_fileio.py:724
↓ 1 callersMethodis_relative_to
(self, other: str | PathLike[str])
src/anyio/_core/_fileio.py:564
↓ 1 callersMethodis_reserved
(self)
src/anyio/_core/_fileio.py:731
↓ 1 callersMethodis_running
Check if the test runner is running. :return: ``True`` if the coroutine is currently being run, ``False`` otherwise.
src/anyio/abc/_testing.py:74
↓ 1 callersMethodis_socket
(self)
src/anyio/_core/_fileio.py:734
↓ 1 callersFunctioniterate_exceptions
( exception: BaseException, )
src/anyio/_core/_exceptions.py:83
↓ 1 callersMethodlchmod
(self, mode: int)
src/anyio/_core/_fileio.py:758
↓ 1 callersMethodlocked
(self)
src/anyio/_backends/_asyncio.py:2073
↓ 1 callersFunctionmain
()
docs/snippets/why/asyncio_cancel_before_start.py:25
↓ 1 callersFunctionmain
()
docs/snippets/why/asyncio_edge_cancellation.py:14
↓ 1 callersFunctionmain
()
docs/snippets/why/anyio_level_cancellation.py:16
↓ 1 callersFunctionmain
()
docs/snippets/why/asyncio_shield_gc.py:14
↓ 1 callersFunctionmain
()
docs/snippets/why/asyncio_lost_result.py:10
↓ 1 callersFunctionmain
()
docs/snippets/why/asyncio_shield_shutdown.py:10
↓ 1 callersFunctionmain
()
docs/snippets/why/anyio_result_not_lost.py:12
↓ 1 callersFunctionmain
()
docs/snippets/why/anyio_cancel_before_start.py:27
↓ 1 callersFunctionmiddle_task
()
tests/test_taskgroups.py:395
↓ 1 callersMethodmove
(self, target: str | os.PathLike[str])
src/anyio/_core/_fileio.py:543
↓ 1 callersMethodmove_into
( self, target_dir: str | os.PathLike[str], )
src/anyio/_core/_fileio.py:553
↓ 1 callersFunctionnative_coro_part
()
tests/test_debugging.py:114
↓ 1 callersFunctionnative_coro_part
()
tests/test_taskgroups.py:1446
↓ 1 callersFunctionnever
()
tests/test_concurrency_utils.py:103
↓ 1 callersFunctionnormalize_index
(value: object, message: str)
src/anyio/itertools.py:413
↓ 1 callersMethodnotify_closing
(cls, obj: FileDescriptorLike)
src/anyio/_backends/_trio.py:1397
↓ 1 callersMethodopen_process
( cls, command: StrOrBytesPath | Sequence[StrOrBytesPath], *, stdin: int | IO[
src/anyio/_backends/_trio.py:1217
↓ 1 callersFunctionowner
()
tests/test_taskgroups.py:439
↓ 1 callersFunctionprocess_worker
()
src/anyio/to_process.py:207
↓ 1 callersMethodread
(self, size: int = -1)
src/anyio/_core/_tempfile.py:343
↓ 1 callersMethodreadline
(self)
src/anyio/_core/_fileio.py:127
↓ 1 callersMethodreadlink
(self)
src/anyio/_core/_fileio.py:872
↓ 1 callersFunctionreceive
(f: asyncio.Future[str])
docs/snippets/why/asyncio_lost_result.py:4
↓ 1 callersMethodreceive
Receive the next item. :raises ~anyio.ClosedResourceError: if the receive stream has been explicitly closed :rai
src/anyio/abc/_streams.py:42
↓ 1 callersMethodreceive
Receive at most ``max_bytes`` bytes from the peer. .. note:: Implementers of this interface should not return an empty :
src/anyio/abc/_streams.py:138
↓ 1 callersMethodreceive
(self, max_bytes: int = 65536)
src/anyio/streams/stapled.py:43
↓ 1 callersMethodreceive_until
Receive datagrams until ``sentinel`` arrives, and return all of them.
tests/test_sockets.py:2690
↓ 1 callersMethodrelease
Increment the semaphore value.
src/anyio/_core/_synchronization.py:451
↓ 1 callersMethodrelease
(self)
src/anyio/_backends/_asyncio.py:2076
↓ 1 callersMethodrelease
(self)
src/anyio/_backends/_asyncio.py:2161
↓ 1 callersMethodrelease
(self)
src/anyio/_backends/_asyncio.py:2286
↓ 1 callersMethodrelease
(self)
src/anyio/_backends/_trio.py:909
↓ 1 callersMethodrelease_on_behalf_of
Release the token held by the given borrower. :raises RuntimeError: if the borrower has not borrowed a token from this l
src/anyio/_core/_synchronization.py:634
↓ 1 callersMethodrelease_on_behalf_of
(self, borrower: object)
src/anyio/_backends/_trio.py:912
↓ 1 callersMethodrename
(self, target: str | pathlib.PurePath | Path)
src/anyio/_core/_fileio.py:878
↓ 1 callersFunctionreset_current_async_library
(token: Token | None)
src/anyio/_core/_eventloop.py:242
↓ 1 callersMethodresolve
(self, strict: bool = False)
src/anyio/_core/_fileio.py:892
↓ 1 callersFunctionreturn_non_coro_awaitable
( func: Callable[P, Coroutine[Any, Any, T]], )
tests/conftest.py:198
↓ 1 callersFunctionreturn_now
()
tests/test_concurrency_utils.py:100
↓ 1 callersMethodrmdir
(self)
src/anyio/_core/_fileio.py:932
← previousnext →401–500 of 2,553, ranked by callers