chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
457d35d7-d94d-47fd-ab7c-84be5f7155eb
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,975
supabase-export-v2
43db902fcbaba8db
time (in :class:`float` seconds) the executor will be given to finish joining. With the default, ``None``, the executor is allowed an unlimited amount of time. If the *timeout* is reached, a :exc:`RuntimeWarning` is emitted and the default executor is terminated without waiting for its threads to finish joining.
trusted_official_docs
CPython Docs
time (in :class:`float` seconds) the executor will be given to finish joining. With the default, ``None``, the executor is allowed an unlimited amount of time. If the *timeout* is reached, a :exc:`RuntimeWarning` is emitted and the default executor is terminated without waiting for its threads to finish joining.
time (in :class:`float` seconds) the executor will be given to finish joining. With the default, ``None``, the executor is allowed an unlimited amount of time. If the *timeout* is reached, a :exc:`RuntimeWarning` is emitted and the default executor is terminated without waiting for its threads to finish joining.
python, official-docs, cpython, P0
Local_Trusted_Corpus
469c4770-7ade-4e67-b0ea-1a595474ea31
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,264
supabase-export-v2
9932c2b17f52244d
usable to send and receive data on the connection, and *address* is the address bound to the socket on the other end of the connection. *sock* must be a non-blocking socket.
trusted_official_docs
CPython Docs
usable to send and receive data on the connection, and *address* is the address bound to the socket on the other end of the connection. *sock* must be a non-blocking socket.
usable to send and receive data on the connection, and *address* is the address bound to the socket on the other end of the connection. *sock* must be a non-blocking socket.
python, official-docs, cpython, P0
Local_Trusted_Corpus
47eb8570-2628-4129-9714-3f6b0b688b20
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,148
supabase-export-v2
42274b45b9ebe056
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default). * *start_serving* set to ``True`` (the default) causes the created server to start accepting connections immediately. When set to ``False``, the user should ...
trusted_official_docs
CPython Docs
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default). * *start_serving* set to ``True`` (the default) causes the created server to start accepting connections immediately. When set to ``False``, the user should ...
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default). * *start_serving* set to ``True`` (the default) causes the created server to start accepting connections immediately. When set to ``False``, the user should ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ba1ce16-efbf-4b4a-909a-e912661f7f82
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,929
supabase-export-v2
d880e39639167cb3
As noted above, consider using the higher-level :func:`asyncio.run` function, instead of using these lower level functions to manually create and close an event loop. .. versionchanged:: 3.14 Raises a :exc:`RuntimeError` if there is no current event loop.
trusted_official_docs
CPython Docs
As noted above, consider using the higher-level :func:`asyncio.run` function, instead of using these lower level functions to manually create and close an event loop. .. versionchanged:: 3.14 Raises a :exc:`RuntimeError` if there is no current event loop.
As noted above, consider using the higher-level :func:`asyncio.run` function, instead of using these lower level functions to manually create and close an event loop. .. versionchanged:: 3.14 Raises a :exc:`RuntimeError` if there is no current event loop.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4bf3a357-689d-43bc-90b7-f3ae34471826
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,991
supabase-export-v2
452af6651ef5400b
Raises :exc:`RuntimeError` if called on a loop that's been closed. This can happen on a secondary thread when the main application is shutting down. See the :ref:`concurrency and multithreading <asyncio-multithreading>` section of the documentation.
trusted_official_docs
CPython Docs
Raises :exc:`RuntimeError` if called on a loop that's been closed. This can happen on a secondary thread when the main application is shutting down. See the :ref:`concurrency and multithreading <asyncio-multithreading>` section of the documentation.
Raises :exc:`RuntimeError` if called on a loop that's been closed. This can happen on a secondary thread when the main application is shutting down. See the :ref:`concurrency and multithreading <asyncio-multithreading>` section of the documentation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c173639-4be1-4349-b13d-13a09bba943e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,381
supabase-export-v2
5ce2026ce9358b40
* *stdin* can be any of these: * a file-like object * an existing file descriptor (a positive integer), for example those created with :meth:`os.pipe` * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file ...
trusted_official_docs
CPython Docs
* *stdin* can be any of these: * a file-like object * an existing file descriptor (a positive integer), for example those created with :meth:`os.pipe` * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file ...
* *stdin* can be any of these: * a file-like object * an existing file descriptor (a positive integer), for example those created with :meth:`os.pipe` * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c97b251-0cfe-481f-9836-e5127c82d2bd
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,389
supabase-export-v2
3f8b16023bebd00b
or *stderr* represents a pipe, then the other side of this pipe should be registered with :meth:`~loop.connect_write_pipe` or :meth:`~loop.connect_read_pipe` for use with the event loop. See the constructor of the :class:`subprocess.Popen` class for documentation on other arguments.
trusted_official_docs
CPython Docs
or *stderr* represents a pipe, then the other side of this pipe should be registered with :meth:`~loop.connect_write_pipe` or :meth:`~loop.connect_read_pipe` for use with the event loop. See the constructor of the :class:`subprocess.Popen` class for documentation on other arguments.
or *stderr* represents a pipe, then the other side of this pipe should be registered with :meth:`~loop.connect_write_pipe` or :meth:`~loop.connect_read_pipe` for use with the event loop. See the constructor of the :class:`subprocess.Popen` class for documentation on other arguments.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4db0b7e5-ee24-43fa-9056-98fa780aab20
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,061
supabase-export-v2
69c78ed45bf5caa9
Other arguments: * *ssl*: if given and not false, a SSL/TLS transport is created (by default a plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` object, this context is used to create the transport; if *ssl* is :const:`True`, a default context returned from :func:`ssl.create_default_context` is...
trusted_official_docs
CPython Docs
Other arguments: * *ssl*: if given and not false, a SSL/TLS transport is created (by default a plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` object, this context is used to create the transport; if *ssl* is :const:`True`, a default context returned from :func:`ssl.create_default_context` is...
Other arguments: * *ssl*: if given and not false, a SSL/TLS transport is created (by default a plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` object, this context is used to create the transport; if *ssl* is :const:`True`, a default context returned from :func:`ssl.create_default_context` is...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e474999-30f9-4e8c-8caa-89b54bd414ff
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,306
supabase-export-v2
a902e9ddd4463cbe
coroutines of that event loop. Unlike signal handlers registered using :func:`signal.signal`, a callback registered with this function is allowed to interact with the event loop. Raise :exc:`ValueError` if the signal number is invalid or uncatchable. Raise :exc:`RuntimeError` if there is a problem setting up the handle...
trusted_official_docs
CPython Docs
coroutines of that event loop. Unlike signal handlers registered using :func:`signal.signal`, a callback registered with this function is allowed to interact with the event loop. Raise :exc:`ValueError` if the signal number is invalid or uncatchable. Raise :exc:`RuntimeError` if there is a problem setting up the handle...
coroutines of that event loop. Unlike signal handlers registered using :func:`signal.signal`, a callback registered with this function is allowed to interact with the event loop. Raise :exc:`ValueError` if the signal number is invalid or uncatchable. Raise :exc:`RuntimeError` if there is a problem setting up the handle...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f12247e-a808-4aad-8164-4ce577cecd87
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,224
supabase-export-v2
0244845e8d2698b4
that work with sockets directly. However, there are some use cases when performance is not critical, and working with :class:`~socket.socket` objects directly is more convenient. .. method:: loop.sock_recv(sock, nbytes) :async:
trusted_official_docs
CPython Docs
that work with sockets directly. However, there are some use cases when performance is not critical, and working with :class:`~socket.socket` objects directly is more convenient. .. method:: loop.sock_recv(sock, nbytes) :async:
that work with sockets directly. However, there are some use cases when performance is not critical, and working with :class:`~socket.socket` objects directly is more convenient. .. method:: loop.sock_recv(sock, nbytes) :async:
python, official-docs, cpython, P0
Local_Trusted_Corpus
4fb2ec17-1cea-45ac-85ac-d8e56ffd348e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,228
supabase-export-v2
7e53e61705ad96d6
*sock* must be a non-blocking socket. .. versionchanged:: 3.7 Even though this method was always documented as a coroutine method, releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this is an ``async def`` method.
trusted_official_docs
CPython Docs
*sock* must be a non-blocking socket. .. versionchanged:: 3.7 Even though this method was always documented as a coroutine method, releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this is an ``async def`` method.
*sock* must be a non-blocking socket. .. versionchanged:: 3.7 Even though this method was always documented as a coroutine method, releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this is an ``async def`` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
50f3866d-2d5f-49cb-b76d-eed641ecdefe
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,136
supabase-export-v2
5dd0e9fb18fcbad0
* *flags* is a bitmask for :meth:`getaddrinfo`. * *sock* can optionally be specified in order to use a preexisting socket object. If specified, *host* and *port* must not be specified.
trusted_official_docs
CPython Docs
* *flags* is a bitmask for :meth:`getaddrinfo`. * *sock* can optionally be specified in order to use a preexisting socket object. If specified, *host* and *port* must not be specified.
* *flags* is a bitmask for :meth:`getaddrinfo`. * *sock* can optionally be specified in order to use a preexisting socket object. If specified, *host* and *port* must not be specified.
python, official-docs, cpython, P0
Local_Trusted_Corpus
512d0ab0-8abf-48bb-8390-5bc281f4abab
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,099
supabase-export-v2
15b6aea28b9abce2
On Windows, when using the proactor event loop with ``local_addr=None``, an :exc:`OSError` with :attr:`!errno.WSAEINVAL` will be raised when running it. * *remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to connect the socket to a remote address. The *remote_host* and *remote_port* are looked u...
trusted_official_docs
CPython Docs
On Windows, when using the proactor event loop with ``local_addr=None``, an :exc:`OSError` with :attr:`!errno.WSAEINVAL` will be raised when running it. * *remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to connect the socket to a remote address. The *remote_host* and *remote_port* are looked u...
On Windows, when using the proactor event loop with ``local_addr=None``, an :exc:`OSError` with :attr:`!errno.WSAEINVAL` will be raised when running it. * *remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to connect the socket to a remote address. The *remote_host* and *remote_port* are looked u...
python, official-docs, cpython, P0
Local_Trusted_Corpus
51cc82e8-152a-486b-99a4-5da40f2c2d4e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,062
supabase-export-v2
896cb2e7ce6063c7
*ssl* is a :class:`ssl.SSLContext` object, this context is used to create the transport; if *ssl* is :const:`True`, a default context returned from :func:`ssl.create_default_context` is used. .. seealso:: :ref:`SSL/TLS security considerations <ssl-security>`
trusted_official_docs
CPython Docs
*ssl* is a :class:`ssl.SSLContext` object, this context is used to create the transport; if *ssl* is :const:`True`, a default context returned from :func:`ssl.create_default_context` is used. .. seealso:: :ref:`SSL/TLS security considerations <ssl-security>`
*ssl* is a :class:`ssl.SSLContext` object, this context is used to create the transport; if *ssl* is :const:`True`, a default context returned from :func:`ssl.create_default_context` is used. .. seealso:: :ref:`SSL/TLS security considerations <ssl-security>`
python, official-docs, cpython, P0
Local_Trusted_Corpus
5217c57d-1929-4999-ad68-6c0eca02ec65
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,956
supabase-export-v2
092079a82db04f58
selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit. If :meth:`stop` is called while :meth:`run_forever` is running, the loop will run the current batch of callbacks and then exit. Note that new callbacks scheduled by callba...
trusted_official_docs
CPython Docs
selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit. If :meth:`stop` is called while :meth:`run_forever` is running, the loop will run the current batch of callbacks and then exit. Note that new callbacks scheduled by callba...
selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit. If :meth:`stop` is called while :meth:`run_forever` is running, the loop will run the current batch of callbacks and then exit. Note that new callbacks scheduled by callba...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5541f881-015d-4988-93db-1442c9e56b04
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,118
supabase-export-v2
c27f7253ad2a6382
name of a Unix domain socket and is required, unless a *sock* parameter is specified. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported. See the documentation of the :meth:`loop.create_connection` method for information about arguments to this method.
trusted_official_docs
CPython Docs
name of a Unix domain socket and is required, unless a *sock* parameter is specified. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported. See the documentation of the :meth:`loop.create_connection` method for information about arguments to this method.
name of a Unix domain socket and is required, unless a *sock* parameter is specified. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported. See the documentation of the :meth:`loop.create_connection` method for information about arguments to this method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
55ea452d-4f46-4e4b-be5c-7f53c79bf0c3
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,146
supabase-export-v2
dbbcd1ed198d8f80
Added the *keep_alive* parameter. * *ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default).
trusted_official_docs
CPython Docs
Added the *keep_alive* parameter. * *ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default).
Added the *keep_alive* parameter. * *ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default).
python, official-docs, cpython, P0
Local_Trusted_Corpus
561bdd13-d56b-4182-aea3-b6962962fe44
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,089
supabase-export-v2
44104ad73f98c62a
The :func:`open_connection` function is a high-level alternative API. It returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be used directly in async/await code. .. method:: loop.create_datagram_endpoint(protocol_factory, \ local_addr=None, remote_addr=None, *, \ family=0, proto=0, flags=0, \ ...
trusted_official_docs
CPython Docs
The :func:`open_connection` function is a high-level alternative API. It returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be used directly in async/await code. .. method:: loop.create_datagram_endpoint(protocol_factory, \ local_addr=None, remote_addr=None, *, \ family=0, proto=0, flags=0, \ ...
The :func:`open_connection` function is a high-level alternative API. It returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be used directly in async/await code. .. method:: loop.create_datagram_endpoint(protocol_factory, \ local_addr=None, remote_addr=None, *, \ family=0, proto=0, flags=0, \ ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
565db325-3d05-4c6b-9f4a-5152f36afdde
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,258
supabase-export-v2
5d9e6e351dd2b22a
*sock* must be a non-blocking socket. .. versionchanged:: 3.5.2 ``address`` no longer needs to be resolved. ``sock_connect`` will try to check if the *address* is already resolved by calling :func:`socket.inet_pton`. If not, :meth:`loop.getaddrinfo` will be used to resolve the *address*.
trusted_official_docs
CPython Docs
*sock* must be a non-blocking socket. .. versionchanged:: 3.5.2 ``address`` no longer needs to be resolved. ``sock_connect`` will try to check if the *address* is already resolved by calling :func:`socket.inet_pton`. If not, :meth:`loop.getaddrinfo` will be used to resolve the *address*.
*sock* must be a non-blocking socket. .. versionchanged:: 3.5.2 ``address`` no longer needs to be resolved. ``sock_connect`` will try to check if the *address* is already resolved by calling :func:`socket.inet_pton`. If not, :meth:`loop.getaddrinfo` will be used to resolve the *address*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
56940a34-a235-4251-9806-1d26eb3eff42
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,132
supabase-export-v2
e9a0ba167c4b0c1c
- If *host* is a sequence of strings, the TCP server is bound to all network interfaces specified by the sequence. - If *host* is an empty string or ``None``, all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6).
trusted_official_docs
CPython Docs
- If *host* is a sequence of strings, the TCP server is bound to all network interfaces specified by the sequence. - If *host* is an empty string or ``None``, all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6).
- If *host* is a sequence of strings, the TCP server is bound to all network interfaces specified by the sequence. - If *host* is an empty string or ``None``, all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6).
python, official-docs, cpython, P0
Local_Trusted_Corpus
58b874a7-efb9-41bb-a059-bdc1f8ed73f5
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,042
supabase-export-v2
cf035f9e8169ff04
a reference to the active event loop, and *coro* is a coroutine object. The callable must pass on all *kwargs*, and return a :class:`asyncio.Task`-compatible object. .. versionchanged:: 3.13.3 Required that all *kwargs* are passed on to :class:`asyncio.Task`.
trusted_official_docs
CPython Docs
a reference to the active event loop, and *coro* is a coroutine object. The callable must pass on all *kwargs*, and return a :class:`asyncio.Task`-compatible object. .. versionchanged:: 3.13.3 Required that all *kwargs* are passed on to :class:`asyncio.Task`.
a reference to the active event loop, and *coro* is a coroutine object. The callable must pass on all *kwargs*, and return a :class:`asyncio.Task`-compatible object. .. versionchanged:: 3.13.3 Required that all *kwargs* are passed on to :class:`asyncio.Task`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
58e5c896-bbcf-4d2a-8b1f-3e567323d165
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,163
supabase-export-v2
74240bbb2200715a
socket will automatically be removed from the filesystem when the server is closed, unless the socket has been replaced after the server has been created. See the documentation of the :meth:`loop.create_server` method for information about arguments to this method.
trusted_official_docs
CPython Docs
socket will automatically be removed from the filesystem when the server is closed, unless the socket has been replaced after the server has been created. See the documentation of the :meth:`loop.create_server` method for information about arguments to this method.
socket will automatically be removed from the filesystem when the server is closed, unless the socket has been replaced after the server has been created. See the documentation of the :meth:`loop.create_server` method for information about arguments to this method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5998b99f-3312-4744-8c5f-63207f54d7d7
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,100
supabase-export-v2
d573f13bec4ed274
if given, is a ``(remote_host, remote_port)`` tuple used to connect the socket to a remote address. The *remote_host* and *remote_port* are looked up using :meth:`getaddrinfo`. * *family*, *proto*, *flags* are the optional address family, protocol and flags to be passed through to :meth:`getaddrinfo` for *host* resol...
trusted_official_docs
CPython Docs
if given, is a ``(remote_host, remote_port)`` tuple used to connect the socket to a remote address. The *remote_host* and *remote_port* are looked up using :meth:`getaddrinfo`. * *family*, *proto*, *flags* are the optional address family, protocol and flags to be passed through to :meth:`getaddrinfo` for *host* resol...
if given, is a ``(remote_host, remote_port)`` tuple used to connect the socket to a remote address. The *remote_host* and *remote_port* are looked up using :meth:`getaddrinfo`. * *family*, *proto*, *flags* are the optional address family, protocol and flags to be passed through to :meth:`getaddrinfo` for *host* resol...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bc32f8c-61e9-4f79-a833-88953f1d7e51
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,066
supabase-export-v2
6070b6e60fc16da0
attempt in parallel. This is the "Connection Attempt Delay" as defined in :rfc:`8305`. A sensible default value recommended by the RFC is ``0.25`` (250 milliseconds). * *interleave* controls address reordering when a host name resolves to multiple IP addresses. If ``0`` or unspecified, no reordering is done, and addre...
trusted_official_docs
CPython Docs
attempt in parallel. This is the "Connection Attempt Delay" as defined in :rfc:`8305`. A sensible default value recommended by the RFC is ``0.25`` (250 milliseconds). * *interleave* controls address reordering when a host name resolves to multiple IP addresses. If ``0`` or unspecified, no reordering is done, and addre...
attempt in parallel. This is the "Connection Attempt Delay" as defined in :rfc:`8305`. A sensible default value recommended by the RFC is ``0.25`` (250 milliseconds). * *interleave* controls address reordering when a host name resolves to multiple IP addresses. If ``0`` or unspecified, no reordering is done, and addre...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bf97a92-65d0-4a3e-93fa-2ac8e82b56fa
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,394
supabase-export-v2
334278e533220eff
Create a subprocess from *cmd*, which can be a :class:`str` or a :class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, using the platform's "shell" syntax. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=True``.
trusted_official_docs
CPython Docs
Create a subprocess from *cmd*, which can be a :class:`str` or a :class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, using the platform's "shell" syntax. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=True``.
Create a subprocess from *cmd*, which can be a :class:`str` or a :class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, using the platform's "shell" syntax. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=True``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5db73e2b-f3f3-4ebf-8f8f-dff20982ee24
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,033
supabase-export-v2
3f9302863125054d
keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *coro* to run in. The current context copy is created when no *context* is provided. An optional keyword-only *eager_start* argument allows specifying if the task should execute eagerly during the call to create_task, or b...
trusted_official_docs
CPython Docs
keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *coro* to run in. The current context copy is created when no *context* is provided. An optional keyword-only *eager_start* argument allows specifying if the task should execute eagerly during the call to create_task, or b...
keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *coro* to run in. The current context copy is created when no *context* is provided. An optional keyword-only *eager_start* argument allows specifying if the task should execute eagerly during the call to create_task, or b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e718e0d-ed53-4933-87be-74495c673c57
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,348
supabase-export-v2
369b760dbed722b0
Default exception handler. This is called when an exception occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior.
trusted_official_docs
CPython Docs
Default exception handler. This is called when an exception occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior.
Default exception handler. This is called when an exception occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e7bcde4-1554-47d6-8b64-9bfcbc88cdd7
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,305
supabase-export-v2
30ddcf3678d5ecc3
Set *callback* as the handler for the *signum* signal, passing *args* as positional arguments. The callback will be invoked by *loop*, along with other queued callbacks and runnable coroutines of that event loop. Unlike signal handlers registered using :func:`signal.signal`, a callback registered with this function ...
trusted_official_docs
CPython Docs
Set *callback* as the handler for the *signum* signal, passing *args* as positional arguments. The callback will be invoked by *loop*, along with other queued callbacks and runnable coroutines of that event loop. Unlike signal handlers registered using :func:`signal.signal`, a callback registered with this function ...
Set *callback* as the handler for the *signum* signal, passing *args* as positional arguments. The callback will be invoked by *loop*, along with other queued callbacks and runnable coroutines of that event loop. Unlike signal handlers registered using :func:`signal.signal`, a callback registered with this function ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ee6407a-bc65-4468-8fef-a515d838ecf8
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,282
supabase-export-v2
328ed46eacc16a75
Asynchronous version of :meth:`socket.getnameinfo`. .. note:: Both *getaddrinfo* and *getnameinfo* internally utilize their synchronous versions through the loop's default thread pool executor. When this executor is saturated, these methods may experience delays, which higher-level networking libraries may report as...
trusted_official_docs
CPython Docs
Asynchronous version of :meth:`socket.getnameinfo`. .. note:: Both *getaddrinfo* and *getnameinfo* internally utilize their synchronous versions through the loop's default thread pool executor. When this executor is saturated, these methods may experience delays, which higher-level networking libraries may report as...
Asynchronous version of :meth:`socket.getnameinfo`. .. note:: Both *getaddrinfo* and *getnameinfo* internally utilize their synchronous versions through the loop's default thread pool executor. When this executor is saturated, these methods may experience delays, which higher-level networking libraries may report as...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ef615bb-dded-4552-a4e3-56e7647007c5
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,140
supabase-export-v2
a00d73e5f203dd88
* *backlog* is the maximum number of queued connections passed to :meth:`~socket.socket.listen` (defaults to 100). * *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over the accepted connections.
trusted_official_docs
CPython Docs
* *backlog* is the maximum number of queued connections passed to :meth:`~socket.socket.listen` (defaults to 100). * *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over the accepted connections.
* *backlog* is the maximum number of queued connections passed to :meth:`~socket.socket.listen` (defaults to 100). * *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over the accepted connections.
python, official-docs, cpython, P0
Local_Trusted_Corpus
65d13162-575f-4444-af1f-7854de20de69
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,020
supabase-export-v2
c5dc51043732e0d8
Return the current time, as a :class:`float` value, according to the event loop's internal monotonic clock. .. note:: .. versionchanged:: 3.8 In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) should not exceed one day. This has been fixed in Python 3.8.
trusted_official_docs
CPython Docs
Return the current time, as a :class:`float` value, according to the event loop's internal monotonic clock. .. note:: .. versionchanged:: 3.8 In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) should not exceed one day. This has been fixed in Python 3.8.
Return the current time, as a :class:`float` value, according to the event loop's internal monotonic clock. .. note:: .. versionchanged:: 3.8 In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) should not exceed one day. This has been fixed in Python 3.8.
python, official-docs, cpython, P0
Local_Trusted_Corpus
66e207a4-faa7-4417-ae54-b8e9f015c3de
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,030
supabase-export-v2
76fb6abd7213cdf0
Third-party event loops can use their own subclass of :class:`Task` for interoperability. In this case, the result type is a subclass of :class:`Task`. The full function signature is largely the same as that of the :class:`Task` constructor (or factory) - all of the keyword arguments to this function are passed throu...
trusted_official_docs
CPython Docs
Third-party event loops can use their own subclass of :class:`Task` for interoperability. In this case, the result type is a subclass of :class:`Task`. The full function signature is largely the same as that of the :class:`Task` constructor (or factory) - all of the keyword arguments to this function are passed throu...
Third-party event loops can use their own subclass of :class:`Task` for interoperability. In this case, the result type is a subclass of :class:`Task`. The full function signature is largely the same as that of the :class:`Task` constructor (or factory) - all of the keyword arguments to this function are passed throu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
676d5104-2b4a-4624-8a98-85a97b343fda
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,307
supabase-export-v2
4d077e66f0b4cf45
Raise :exc:`ValueError` if the signal number is invalid or uncatchable. Raise :exc:`RuntimeError` if there is a problem setting up the handler. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *callback*.
trusted_official_docs
CPython Docs
Raise :exc:`ValueError` if the signal number is invalid or uncatchable. Raise :exc:`RuntimeError` if there is a problem setting up the handler. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *callback*.
Raise :exc:`ValueError` if the signal number is invalid or uncatchable. Raise :exc:`RuntimeError` if there is a problem setting up the handler. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *callback*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
67e3f2c5-bb30-4d69-836d-bdcba064f59b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,274
supabase-export-v2
aadfd1f8e7895faa
position is always updated, even when this method raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to obtain the actual number of bytes sent. *fallback*, when set to ``True``, makes asyncio manually read and send the file when the platform does not support the sendfile syscall (e.g. Windows or SS...
trusted_official_docs
CPython Docs
position is always updated, even when this method raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to obtain the actual number of bytes sent. *fallback*, when set to ``True``, makes asyncio manually read and send the file when the platform does not support the sendfile syscall (e.g. Windows or SS...
position is always updated, even when this method raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to obtain the actual number of bytes sent. *fallback*, when set to ``True``, makes asyncio manually read and send the file when the platform does not support the sendfile syscall (e.g. Windows or SS...
python, official-docs, cpython, P0
Local_Trusted_Corpus
68759df9-3036-4bf2-98c2-0e1b9de5bc91
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,159
supabase-export-v2
4a6d15da08322147
The :func:`start_server` function is a higher-level alternative API that returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can be used in an async/await code. .. method:: loop.create_unix_server(protocol_factory, path=None, \ *, sock=None, backlog=100, ssl=None, \ ssl_handshake_timeout=None, \ s...
trusted_official_docs
CPython Docs
The :func:`start_server` function is a higher-level alternative API that returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can be used in an async/await code. .. method:: loop.create_unix_server(protocol_factory, path=None, \ *, sock=None, backlog=100, ssl=None, \ ssl_handshake_timeout=None, \ s...
The :func:`start_server` function is a higher-level alternative API that returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can be used in an async/await code. .. method:: loop.create_unix_server(protocol_factory, path=None, \ *, sock=None, backlog=100, ssl=None, \ ssl_handshake_timeout=None, \ s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
69cd1b4e-d4bb-40e7-993d-6280d26c7a6b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,212
supabase-export-v2
4c0a75791d4fcae3
Start monitoring the *fd* file descriptor for read availability and invoke *callback* with the specified arguments once *fd* is available for reading. Any preexisting callback registered for *fd* is cancelled and replaced by *callback*.
trusted_official_docs
CPython Docs
Start monitoring the *fd* file descriptor for read availability and invoke *callback* with the specified arguments once *fd* is available for reading. Any preexisting callback registered for *fd* is cancelled and replaced by *callback*.
Start monitoring the *fd* file descriptor for read availability and invoke *callback* with the specified arguments once *fd* is available for reading. Any preexisting callback registered for *fd* is cancelled and replaced by *callback*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6eef76cb-d28e-427b-b8d9-5e0d39284bea
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,050
supabase-export-v2
dc682544a8a4c153
Open a streaming transport connection to a given address specified by *host* and *port*. The socket family can be either :py:const:`~socket.AF_INET` or :py:const:`~socket.AF_INET6` depending on *host* (or the *family* argument, if provided).
trusted_official_docs
CPython Docs
Open a streaming transport connection to a given address specified by *host* and *port*. The socket family can be either :py:const:`~socket.AF_INET` or :py:const:`~socket.AF_INET6` depending on *host* (or the *family* argument, if provided).
Open a streaming transport connection to a given address specified by *host* and *port*. The socket family can be either :py:const:`~socket.AF_INET` or :py:const:`~socket.AF_INET6` depending on *host* (or the *family* argument, if provided).
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f7dc878-2ada-467a-86cd-96e0174c1c28
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,445
supabase-export-v2
4e4ceb473c3dbdf1
This method is idempotent, so it can be called when the server is already serving. The *start_serving* keyword-only parameter to :meth:`loop.create_server` and :meth:`asyncio.start_server` allows creating a Server object that is not accepting connections initially. In this case ``Server.start_serving()``, or :meth:...
trusted_official_docs
CPython Docs
This method is idempotent, so it can be called when the server is already serving. The *start_serving* keyword-only parameter to :meth:`loop.create_server` and :meth:`asyncio.start_server` allows creating a Server object that is not accepting connections initially. In this case ``Server.start_serving()``, or :meth:...
This method is idempotent, so it can be called when the server is already serving. The *start_serving* keyword-only parameter to :meth:`loop.create_server` and :meth:`asyncio.start_server` allows creating a Server object that is not accepting connections initially. In this case ``Server.start_serving()``, or :meth:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6fd2edb3-c263-4ba3-aaad-4e56632944af
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,147
supabase-export-v2
a09ce9e491fc905c
(for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
trusted_official_docs
CPython Docs
(for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
(for a TLS server) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
python, official-docs, cpython, P0
Local_Trusted_Corpus
72028684-8e46-4f89-b888-af56c021ef82
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,043
supabase-export-v2
d164e18596e721bb
.. versionchanged:: 3.13.3 Required that all *kwargs* are passed on to :class:`asyncio.Task`. .. versionchanged:: 3.13.4 *name* is no longer passed to task factories. *context* is no longer passed to task factories if it is ``None``.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.13.3 Required that all *kwargs* are passed on to :class:`asyncio.Task`. .. versionchanged:: 3.13.4 *name* is no longer passed to task factories. *context* is no longer passed to task factories if it is ``None``.
.. versionchanged:: 3.13.3 Required that all *kwargs* are passed on to :class:`asyncio.Task`. .. versionchanged:: 3.13.4 *name* is no longer passed to task factories. *context* is no longer passed to task factories if it is ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
72a71edc-5b14-4262-9f53-ff1ef7608140
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,461
supabase-export-v2
54f4b2a6805dad5c
List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the server is listening on. .. versionchanged:: 3.7 Prior to Python 3.7 ``Server.sockets`` used to return an internal list of server sockets directly. In 3.7 a copy of that list is returned.
trusted_official_docs
CPython Docs
List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the server is listening on. .. versionchanged:: 3.7 Prior to Python 3.7 ``Server.sockets`` used to return an internal list of server sockets directly. In 3.7 a copy of that list is returned.
List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the server is listening on. .. versionchanged:: 3.7 Prior to Python 3.7 ``Server.sockets`` used to return an internal list of server sockets directly. In 3.7 a copy of that list is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c44d533-cba6-449b-b800-407700d2c5ad
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,399
supabase-export-v2
840868cbf3476774
If the transport is closed or is garbage collected, the child process is killed if it is still running. .. note:: It is the application's responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injecti...
trusted_official_docs
CPython Docs
If the transport is closed or is garbage collected, the child process is killed if it is still running. .. note:: It is the application's responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injecti...
If the transport is closed or is garbage collected, the child process is killed if it is still running. .. note:: It is the application's responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injecti...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e76bc64-8bac-41e7-be06-b62cdf6ac797
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,941
supabase-export-v2
8f4718ce083c7724
* The `Callback Handles`_ section documents the :class:`Handle` and :class:`TimerHandle` instances which are returned from scheduling methods such as :meth:`loop.call_soon` and :meth:`loop.call_later`; * The `Server Objects`_ section documents types returned from event loop methods like :meth:`loop.create_server`;
trusted_official_docs
CPython Docs
* The `Callback Handles`_ section documents the :class:`Handle` and :class:`TimerHandle` instances which are returned from scheduling methods such as :meth:`loop.call_soon` and :meth:`loop.call_later`; * The `Server Objects`_ section documents types returned from event loop methods like :meth:`loop.create_server`;
* The `Callback Handles`_ section documents the :class:`Handle` and :class:`TimerHandle` instances which are returned from scheduling methods such as :meth:`loop.call_soon` and :meth:`loop.call_later`; * The `Server Objects`_ section documents types returned from event loop methods like :meth:`loop.create_server`;
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e94e7a1-6d74-4fca-8fd1-f0418a8da8ba
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,324
supabase-export-v2
2fffba1e81a9afa9
# 1. Run in the default loop's executor: result = await loop.run_in_executor( None, blocking_io) print('default thread pool', result) # 2. Run in a custom thread pool: with concurrent.futures.ThreadPoolExecutor() as pool: result = await loop.run_in_executor( pool, blocking_io) print('custom thread pool', result)
trusted_official_docs
CPython Docs
# 1. Run in the default loop's executor: result = await loop.run_in_executor( None, blocking_io) print('default thread pool', result) # 2. Run in a custom thread pool: with concurrent.futures.ThreadPoolExecutor() as pool: result = await loop.run_in_executor( pool, blocking_io) print('custom thread pool', result)
# 1. Run in the default loop's executor: result = await loop.run_in_executor( None, blocking_io) print('default thread pool', result) # 2. Run in a custom thread pool: with concurrent.futures.ThreadPoolExecutor() as pool: result = await loop.run_in_executor( pool, blocking_io) print('custom thread pool', result)
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f648654-cacc-49d7-8dd1-4029086291a5
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,393
supabase-export-v2
3595f4f56c817209
.. method:: loop.subprocess_shell(protocol_factory, cmd, *, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ stderr=subprocess.PIPE, **kwargs) :async: Create a subprocess from *cmd*, which can be a :class:`str` or a :class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, using the pl...
trusted_official_docs
CPython Docs
.. method:: loop.subprocess_shell(protocol_factory, cmd, *, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ stderr=subprocess.PIPE, **kwargs) :async: Create a subprocess from *cmd*, which can be a :class:`str` or a :class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, using the pl...
.. method:: loop.subprocess_shell(protocol_factory, cmd, *, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ stderr=subprocess.PIPE, **kwargs) :async: Create a subprocess from *cmd*, which can be a :class:`str` or a :class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, using the pl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f93222b-0651-46cd-9518-e5dde07858af
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,983
supabase-export-v2
a52d5e3e4ae07c51
Schedule the *callback* :term:`callback` to be called with *args* arguments at the next iteration of the event loop. Return an instance of :class:`asyncio.Handle`, which can be used later to cancel the callback.
trusted_official_docs
CPython Docs
Schedule the *callback* :term:`callback` to be called with *args* arguments at the next iteration of the event loop. Return an instance of :class:`asyncio.Handle`, which can be used later to cancel the callback.
Schedule the *callback* :term:`callback` to be called with *args* arguments at the next iteration of the event loop. Return an instance of :class:`asyncio.Handle`, which can be used later to cancel the callback.
python, official-docs, cpython, P0
Local_Trusted_Corpus
81c9a3f4-ea5c-4d79-8813-9543dd1b653e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,037
supabase-export-v2
551f1eb536e4989f
.. versionchanged:: 3.13.3 Added ``kwargs`` which passes on arbitrary extra parameters, including ``name`` and ``context``. .. versionchanged:: 3.13.4 Rolled back the change that passes on *name* and *context* (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compa...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.13.3 Added ``kwargs`` which passes on arbitrary extra parameters, including ``name`` and ``context``. .. versionchanged:: 3.13.4 Rolled back the change that passes on *name* and *context* (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compa...
.. versionchanged:: 3.13.3 Added ``kwargs`` which passes on arbitrary extra parameters, including ``name`` and ``context``. .. versionchanged:: 3.13.4 Rolled back the change that passes on *name* and *context* (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
85dcde2e-6831-44f5-a74e-108f7a34d359
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,205
supabase-export-v2
8a41c075436c7311
* *server_hostname*: sets or overrides the host name that the target server's certificate will be matched against. * *ssl_handshake_timeout* is (for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default).
trusted_official_docs
CPython Docs
* *server_hostname*: sets or overrides the host name that the target server's certificate will be matched against. * *ssl_handshake_timeout* is (for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default).
* *server_hostname*: sets or overrides the host name that the target server's certificate will be matched against. * *ssl_handshake_timeout* is (for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default).
python, official-docs, cpython, P0
Local_Trusted_Corpus
8766ba0e-fb23-48aa-8e20-e35267287482
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,049
supabase-export-v2
eff169cdb457a8a8
method:: loop.create_connection(protocol_factory, \ host=None, port=None, *, ssl=None, \ family=0, proto=0, flags=0, sock=None, \ local_addr=None, server_hostname=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ happy_eyeballs_delay=None, interleave=None, \ all_errors=False) :async: Open a streaming t...
trusted_official_docs
CPython Docs
method:: loop.create_connection(protocol_factory, \ host=None, port=None, *, ssl=None, \ family=0, proto=0, flags=0, sock=None, \ local_addr=None, server_hostname=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ happy_eyeballs_delay=None, interleave=None, \ all_errors=False) :async: Open a streaming t...
method:: loop.create_connection(protocol_factory, \ host=None, port=None, *, ssl=None, \ family=0, proto=0, flags=0, sock=None, \ local_addr=None, server_hostname=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ happy_eyeballs_delay=None, interleave=None, \ all_errors=False) :async: Open a streaming t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
880f8075-5f9c-4290-adc7-1af2c2e9605f
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,928
supabase-export-v2
7035396178e9a7bc
has rather complex behavior (especially when custom event loop policies are in use), using the :func:`get_running_loop` function is preferred to :func:`get_event_loop` in coroutines and callbacks. As noted above, consider using the higher-level :func:`asyncio.run` function, instead of using these lower level functions...
trusted_official_docs
CPython Docs
has rather complex behavior (especially when custom event loop policies are in use), using the :func:`get_running_loop` function is preferred to :func:`get_event_loop` in coroutines and callbacks. As noted above, consider using the higher-level :func:`asyncio.run` function, instead of using these lower level functions...
has rather complex behavior (especially when custom event loop policies are in use), using the :func:`get_running_loop` function is preferred to :func:`get_event_loop` in coroutines and callbacks. As noted above, consider using the higher-level :func:`asyncio.run` function, instead of using these lower level functions...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8900c4ec-f741-4a3e-b6f8-963383237068
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,986
supabase-export-v2
4a392c437e196ba0
The optional keyword-only *context* argument specifies a custom :class:`contextvars.Context` for the *callback* to run in. Callbacks use the current context when no *context* is provided. Unlike :meth:`call_soon_threadsafe`, this method is not thread-safe.
trusted_official_docs
CPython Docs
The optional keyword-only *context* argument specifies a custom :class:`contextvars.Context` for the *callback* to run in. Callbacks use the current context when no *context* is provided. Unlike :meth:`call_soon_threadsafe`, this method is not thread-safe.
The optional keyword-only *context* argument specifies a custom :class:`contextvars.Context` for the *callback* to run in. Callbacks use the current context when no *context* is provided. Unlike :meth:`call_soon_threadsafe`, this method is not thread-safe.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a11b11a-079c-4789-9129-0ae4c4eeb896
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,131
supabase-export-v2
81b590677fb56314
- If *host* is a string, the TCP server is bound to a single network interface specified by *host*. - If *host* is a sequence of strings, the TCP server is bound to all network interfaces specified by the sequence.
trusted_official_docs
CPython Docs
- If *host* is a string, the TCP server is bound to a single network interface specified by *host*. - If *host* is a sequence of strings, the TCP server is bound to all network interfaces specified by the sequence.
- If *host* is a string, the TCP server is bound to a single network interface specified by *host*. - If *host* is a sequence of strings, the TCP server is bound to all network interfaces specified by the sequence.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a3d4fce-1068-49dc-8949-dd54c25c2568
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,931
supabase-export-v2
bf31b4102815a9ba
.. note:: The :mod:`!asyncio` policy system is deprecated and will be removed in Python 3.16; from there on, this function will return the current running event loop if present else it will return the loop set by :func:`set_event_loop`.
trusted_official_docs
CPython Docs
.. note:: The :mod:`!asyncio` policy system is deprecated and will be removed in Python 3.16; from there on, this function will return the current running event loop if present else it will return the loop set by :func:`set_event_loop`.
.. note:: The :mod:`!asyncio` policy system is deprecated and will be removed in Python 3.16; from there on, this function will return the current running event loop if present else it will return the loop set by :func:`set_event_loop`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a922e0c-1924-4ce1-a70d-56c085a5412e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,386
supabase-export-v2
1d77330e5502e001
that the special :data:`os.devnull` file will be used * the :const:`subprocess.STDOUT` constant which will connect the standard error stream to the process' standard output stream * All other keyword arguments are passed to :class:`subprocess.Popen` without interpretation, except for *bufsize*, *universal_newlines*, ...
trusted_official_docs
CPython Docs
that the special :data:`os.devnull` file will be used * the :const:`subprocess.STDOUT` constant which will connect the standard error stream to the process' standard output stream * All other keyword arguments are passed to :class:`subprocess.Popen` without interpretation, except for *bufsize*, *universal_newlines*, ...
that the special :data:`os.devnull` file will be used * the :const:`subprocess.STDOUT` constant which will connect the standard error stream to the process' standard output stream * All other keyword arguments are passed to :class:`subprocess.Popen` without interpretation, except for *bufsize*, *universal_newlines*, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b6a697f-55d9-40e5-b94a-13b8f91a460e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,973
supabase-export-v2
2e8ba08bdc4c1f27
.. method:: loop.shutdown_default_executor(timeout=None) :async: Schedule the closure of the default executor and wait for it to join all of the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once this method has been called, using the default executor with :meth:`loop.run_in_executor` will raise a ...
trusted_official_docs
CPython Docs
.. method:: loop.shutdown_default_executor(timeout=None) :async: Schedule the closure of the default executor and wait for it to join all of the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once this method has been called, using the default executor with :meth:`loop.run_in_executor` will raise a ...
.. method:: loop.shutdown_default_executor(timeout=None) :async: Schedule the closure of the default executor and wait for it to join all of the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once this method has been called, using the default executor with :meth:`loop.run_in_executor` will raise a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b98beee-3c58-41ac-896f-c31381f47db7
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,063
supabase-export-v2
63a62df3988697e0
.. seealso:: :ref:`SSL/TLS security considerations <ssl-security>` * *server_hostname* sets or overrides the hostname that the target server's certificate will be matched against. Should only be passed if *ssl* is not ``None``. By default the value of the *host* argument is used. If *host* is empty, there is no defa...
trusted_official_docs
CPython Docs
.. seealso:: :ref:`SSL/TLS security considerations <ssl-security>` * *server_hostname* sets or overrides the hostname that the target server's certificate will be matched against. Should only be passed if *ssl* is not ``None``. By default the value of the *host* argument is used. If *host* is empty, there is no defa...
.. seealso:: :ref:`SSL/TLS security considerations <ssl-security>` * *server_hostname* sets or overrides the hostname that the target server's certificate will be matched against. Should only be passed if *ssl* is not ``None``. By default the value of the *host* argument is used. If *host* is empty, there is no defa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b9caf86-af8c-43f7-b1d0-9302100ce1db
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,320
supabase-export-v2
0f5eeb40c1a7ff6f
# File operations (such as logging) can block the # event loop: run them in a thread pool. with open('/dev/urandom', 'rb') as f: return f.read(100) def cpu_bound(): # CPU-bound operations will block the event loop: # in general it is preferable to run them in a # process pool. return sum(i * i for i in range(10 ** 7...
trusted_official_docs
CPython Docs
# File operations (such as logging) can block the # event loop: run them in a thread pool. with open('/dev/urandom', 'rb') as f: return f.read(100) def cpu_bound(): # CPU-bound operations will block the event loop: # in general it is preferable to run them in a # process pool. return sum(i * i for i in range(10 ** 7...
# File operations (such as logging) can block the # event loop: run them in a thread pool. with open('/dev/urandom', 'rb') as f: return f.read(100) def cpu_bound(): # CPU-bound operations will block the event loop: # in general it is preferable to run them in a # process pool. return sum(i * i for i in range(10 ** 7...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8bb9e5f5-e432-4e6c-ad5b-e5576f914021
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,378
supabase-export-v2
26f90f8bb0817ac6
The first string specifies the program executable, and the remaining strings specify the arguments. Together, string arguments form the ``argv`` of the program. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=False`` and the list of strings passed as the first argument; how...
trusted_official_docs
CPython Docs
The first string specifies the program executable, and the remaining strings specify the arguments. Together, string arguments form the ``argv`` of the program. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=False`` and the list of strings passed as the first argument; how...
The first string specifies the program executable, and the remaining strings specify the arguments. Together, string arguments form the ``argv`` of the program. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=False`` and the list of strings passed as the first argument; how...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8bdbfa49-60b1-423e-bba0-9f28baee14a6
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,321
supabase-export-v2
885a65b670f62b85
loop: # in general it is preferable to run them in a # process pool. return sum(i * i for i in range(10 ** 7)) async def main(): loop = asyncio.get_running_loop()
trusted_official_docs
CPython Docs
loop: # in general it is preferable to run them in a # process pool. return sum(i * i for i in range(10 ** 7)) async def main(): loop = asyncio.get_running_loop()
loop: # in general it is preferable to run them in a # process pool. return sum(i * i for i in range(10 ** 7)) async def main(): loop = asyncio.get_running_loop()
python, official-docs, cpython, P0
Local_Trusted_Corpus
8cf72f1f-f575-450a-9296-241ec9791841
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,065
supabase-export-v2
4b7bd587b8c7860f
protocol and flags to be passed through to getaddrinfo() for *host* resolution. If given, these should all be integers from the corresponding :mod:`socket` module constants. * *happy_eyeballs_delay*, if given, enables Happy Eyeballs for this connection. It should be a floating-point number representing the amount of ...
trusted_official_docs
CPython Docs
protocol and flags to be passed through to getaddrinfo() for *host* resolution. If given, these should all be integers from the corresponding :mod:`socket` module constants. * *happy_eyeballs_delay*, if given, enables Happy Eyeballs for this connection. It should be a floating-point number representing the amount of ...
protocol and flags to be passed through to getaddrinfo() for *host* resolution. If given, these should all be integers from the corresponding :mod:`socket` module constants. * *happy_eyeballs_delay*, if given, enables Happy Eyeballs for this connection. It should be a floating-point number representing the amount of ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d327c19-9651-4bf0-9cd3-9b926d363945
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,927
supabase-export-v2
5637460190637490
If there is no running event loop set, the function will return the result of the ``get_event_loop_policy().get_event_loop()`` call. Because this function has rather complex behavior (especially when custom event loop policies are in use), using the :func:`get_running_loop` function is preferred to :func:`get_event_l...
trusted_official_docs
CPython Docs
If there is no running event loop set, the function will return the result of the ``get_event_loop_policy().get_event_loop()`` call. Because this function has rather complex behavior (especially when custom event loop policies are in use), using the :func:`get_running_loop` function is preferred to :func:`get_event_l...
If there is no running event loop set, the function will return the result of the ``get_event_loop_policy().get_event_loop()`` call. Because this function has rather complex behavior (especially when custom event loop policies are in use), using the :func:`get_running_loop` function is preferred to :func:`get_event_l...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d7c6251-91cf-4806-abec-fe131ec7dae5
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,392
supabase-export-v2
c93e9b5a90e3b0a8
If the transport is closed or is garbage collected, the child process is killed if it is still running. .. method:: loop.subprocess_shell(protocol_factory, cmd, *, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ stderr=subprocess.PIPE, **kwargs) :async:
trusted_official_docs
CPython Docs
If the transport is closed or is garbage collected, the child process is killed if it is still running. .. method:: loop.subprocess_shell(protocol_factory, cmd, *, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ stderr=subprocess.PIPE, **kwargs) :async:
If the transport is closed or is garbage collected, the child process is killed if it is still running. .. method:: loop.subprocess_shell(protocol_factory, cmd, *, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ stderr=subprocess.PIPE, **kwargs) :async:
python, official-docs, cpython, P0
Local_Trusted_Corpus
8e1e430d-3487-490d-a13f-b04e8666513b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,275
supabase-export-v2
0859f75e286cd425
``True``, makes asyncio manually read and send the file when the platform does not support the sendfile syscall (e.g. Windows or SSL socket on Unix). Raise :exc:`SendfileNotAvailableError` if the system does not support *sendfile* syscall and *fallback* is ``False``.
trusted_official_docs
CPython Docs
``True``, makes asyncio manually read and send the file when the platform does not support the sendfile syscall (e.g. Windows or SSL socket on Unix). Raise :exc:`SendfileNotAvailableError` if the system does not support *sendfile* syscall and *fallback* is ``False``.
``True``, makes asyncio manually read and send the file when the platform does not support the sendfile syscall (e.g. Windows or SSL socket on Unix). Raise :exc:`SendfileNotAvailableError` if the system does not support *sendfile* syscall and *fallback* is ``False``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
90054824-feac-43a3-be53-6aaf57e8aa2f
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,385
supabase-export-v2
00f55211ce0ef7eb
* *stderr* can be any of these: * a file-like object * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the ...
trusted_official_docs
CPython Docs
* *stderr* can be any of these: * a file-like object * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the ...
* *stderr* can be any of these: * a file-like object * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
925483da-7dc5-4996-acee-8264f099369a
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,197
supabase-export-v2
f6a60ed77185e024
Upgrade an existing transport-based connection to TLS. Create a TLS coder/decoder instance and insert it between the *transport* and the *protocol*. The coder/decoder implements both *transport*-facing protocol and *protocol*-facing transport.
trusted_official_docs
CPython Docs
Upgrade an existing transport-based connection to TLS. Create a TLS coder/decoder instance and insert it between the *transport* and the *protocol*. The coder/decoder implements both *transport*-facing protocol and *protocol*-facing transport.
Upgrade an existing transport-based connection to TLS. Create a TLS coder/decoder instance and insert it between the *transport* and the *protocol*. The coder/decoder implements both *transport*-facing protocol and *protocol*-facing transport.
python, official-docs, cpython, P0
Local_Trusted_Corpus
932cfba5-6c3d-4105-bee1-800a5ea3a34a
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,041
supabase-export-v2
bb9c85c0c221d457
Set a task factory that will be used by :meth:`loop.create_task`. If *factory* is ``None`` the default task factory will be set. Otherwise, *factory* must be a *callable* with the signature matching ``(loop, coro, **kwargs)``, where *loop* is a reference to the active event loop, and *coro* is a coroutine object. The...
trusted_official_docs
CPython Docs
Set a task factory that will be used by :meth:`loop.create_task`. If *factory* is ``None`` the default task factory will be set. Otherwise, *factory* must be a *callable* with the signature matching ``(loop, coro, **kwargs)``, where *loop* is a reference to the active event loop, and *coro* is a coroutine object. The...
Set a task factory that will be used by :meth:`loop.create_task`. If *factory* is ``None`` the default task factory will be set. Otherwise, *factory* must be a *callable* with the signature matching ``(loop, coro, **kwargs)``, where *loop* is a reference to the active event loop, and *coro* is a coroutine object. The...
python, official-docs, cpython, P0
Local_Trusted_Corpus
941e4c20-f791-452e-8633-80339ed863af
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,191
supabase-export-v2
bdf782c48cc087f8
*file* must be a regular file object opened in binary mode. *offset* tells from where to start reading the file. If specified, *count* is the total number of bytes to transmit as opposed to sending the file until EOF is reached. File position is always updated, even when this method raises an error, and :meth:`file...
trusted_official_docs
CPython Docs
*file* must be a regular file object opened in binary mode. *offset* tells from where to start reading the file. If specified, *count* is the total number of bytes to transmit as opposed to sending the file until EOF is reached. File position is always updated, even when this method raises an error, and :meth:`file...
*file* must be a regular file object opened in binary mode. *offset* tells from where to start reading the file. If specified, *count* is the total number of bytes to transmit as opposed to sending the file until EOF is reached. File position is always updated, even when this method raises an error, and :meth:`file...
python, official-docs, cpython, P0
Local_Trusted_Corpus
97a1303f-d6b1-44fa-bef2-0417fd87d841
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,073
supabase-export-v2
4ff5e0a9f6ca6490
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default). * *all_errors* determines what exceptions are raised when a connection cannot be created. By default, only a single ``Exception`` is raised: the first except...
trusted_official_docs
CPython Docs
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default). * *all_errors* determines what exceptions are raised when a connection cannot be created. By default, only a single ``Exception`` is raised: the first except...
* *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default). * *all_errors* determines what exceptions are raised when a connection cannot be created. By default, only a single ``Exception`` is raised: the first except...
python, official-docs, cpython, P0
Local_Trusted_Corpus
985b73de-0611-49f8-96e8-c87eee1be5f4
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,984
supabase-export-v2
92a4e7f260f1d147
Return an instance of :class:`asyncio.Handle`, which can be used later to cancel the callback. Callbacks are called in the order in which they are registered. Each callback will be called exactly once.
trusted_official_docs
CPython Docs
Return an instance of :class:`asyncio.Handle`, which can be used later to cancel the callback. Callbacks are called in the order in which they are registered. Each callback will be called exactly once.
Return an instance of :class:`asyncio.Handle`, which can be used later to cancel the callback. Callbacks are called in the order in which they are registered. Each callback will be called exactly once.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9896f2e2-1e0c-4369-8ac5-35e9ec59d4b1
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,384
supabase-export-v2
83a170e99afc8770
will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the special :data:`os.devnull` file will be used * *stderr* can be any of these:
trusted_official_docs
CPython Docs
will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the special :data:`os.devnull` file will be used * *stderr* can be any of these:
will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the special :data:`os.devnull` file will be used * *stderr* can be any of these:
python, official-docs, cpython, P0
Local_Trusted_Corpus
9c2af313-62ee-449c-96ac-4ce34058c463
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,025
supabase-export-v2
e488edce5c160e80
Create an :class:`asyncio.Future` object attached to the event loop. This is the preferred way to create Futures in asyncio. This lets third-party event loops provide alternative implementations of the Future object (with better performance or instrumentation).
trusted_official_docs
CPython Docs
Create an :class:`asyncio.Future` object attached to the event loop. This is the preferred way to create Futures in asyncio. This lets third-party event loops provide alternative implementations of the Future object (with better performance or instrumentation).
Create an :class:`asyncio.Future` object attached to the event loop. This is the preferred way to create Futures in asyncio. This lets third-party event loops provide alternative implementations of the Future object (with better performance or instrumentation).
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e64ae14-8f85-4a59-8be2-649f65244d7b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,965
supabase-export-v2
ed9bf8640191f28e
This method clears all queues and shuts down the executor, but does not wait for the executor to finish. This method is idempotent and irreversible. No other methods should be called after the event loop is closed.
trusted_official_docs
CPython Docs
This method clears all queues and shuts down the executor, but does not wait for the executor to finish. This method is idempotent and irreversible. No other methods should be called after the event loop is closed.
This method clears all queues and shuts down the executor, but does not wait for the executor to finish. This method is idempotent and irreversible. No other methods should be called after the event loop is closed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2c4d15f-c87d-410b-8800-2cc68a2d3106
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,940
supabase-export-v2
4e717b4b923eda81
* The `Event Loop Methods`_ section is the reference documentation of the event loop APIs; * The `Callback Handles`_ section documents the :class:`Handle` and :class:`TimerHandle` instances which are returned from scheduling methods such as :meth:`loop.call_soon` and :meth:`loop.call_later`;
trusted_official_docs
CPython Docs
* The `Event Loop Methods`_ section is the reference documentation of the event loop APIs; * The `Callback Handles`_ section documents the :class:`Handle` and :class:`TimerHandle` instances which are returned from scheduling methods such as :meth:`loop.call_soon` and :meth:`loop.call_later`;
* The `Event Loop Methods`_ section is the reference documentation of the event loop APIs; * The `Callback Handles`_ section documents the :class:`Handle` and :class:`TimerHandle` instances which are returned from scheduling methods such as :meth:`loop.call_soon` and :meth:`loop.call_later`;
python, official-docs, cpython, P0
Local_Trusted_Corpus
a4988b83-fd41-430a-a60a-0101eb93a20b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,130
supabase-export-v2
c4e32253ee671cfb
* The *host* parameter can be set to several types which determine where the server would be listening: - If *host* is a string, the TCP server is bound to a single network interface specified by *host*.
trusted_official_docs
CPython Docs
* The *host* parameter can be set to several types which determine where the server would be listening: - If *host* is a string, the TCP server is bound to a single network interface specified by *host*.
* The *host* parameter can be set to several types which determine where the server would be listening: - If *host* is a string, the TCP server is bound to a single network interface specified by *host*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a57a3d61-5133-4e38-9d71-d63af068a4c2
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,034
supabase-export-v2
89969e3a61670a14
should execute eagerly during the call to create_task, or be scheduled later. If *eager_start* is not passed the mode set by :meth:`loop.set_task_factory` will be used. .. versionchanged:: 3.8 Added the *name* parameter.
trusted_official_docs
CPython Docs
should execute eagerly during the call to create_task, or be scheduled later. If *eager_start* is not passed the mode set by :meth:`loop.set_task_factory` will be used. .. versionchanged:: 3.8 Added the *name* parameter.
should execute eagerly during the call to create_task, or be scheduled later. If *eager_start* is not passed the mode set by :meth:`loop.set_task_factory` will be used. .. versionchanged:: 3.8 Added the *name* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5fac0c3-3ce3-41b9-a496-f0756bb537e4
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,070
supabase-export-v2
9a5859d78a954313
The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method. * *local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind the socket locally. The *local_host* and *local_port* are looked up usin...
trusted_official_docs
CPython Docs
The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method. * *local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind the socket locally. The *local_host* and *local_port* are looked up usin...
The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method. * *local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind the socket locally. The *local_host* and *local_port* are looked up usin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a7601f0f-b293-453d-bc26-483c29c30cc9
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,192
supabase-export-v2
59045f5a61a0c722
position is always updated, even when this method raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to obtain the actual number of bytes sent. *fallback* set to ``True`` makes asyncio to manually read and send the file when the platform does not support the sendfile system call (e.g. Windows or SS...
trusted_official_docs
CPython Docs
position is always updated, even when this method raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to obtain the actual number of bytes sent. *fallback* set to ``True`` makes asyncio to manually read and send the file when the platform does not support the sendfile system call (e.g. Windows or SS...
position is always updated, even when this method raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to obtain the actual number of bytes sent. *fallback* set to ``True`` makes asyncio to manually read and send the file when the platform does not support the sendfile system call (e.g. Windows or SS...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a7b7e402-dc15-471c-b8a8-0ee20de13f40
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,452
supabase-export-v2
1bc59bd22d62a354
async def client_connected(reader, writer): # Communicate with the client with # reader/writer streams. For example: await reader.readline() async def main(host, port): srv = await asyncio.start_server( client_connected, host, port) await srv.serve_forever()
trusted_official_docs
CPython Docs
async def client_connected(reader, writer): # Communicate with the client with # reader/writer streams. For example: await reader.readline() async def main(host, port): srv = await asyncio.start_server( client_connected, host, port) await srv.serve_forever()
async def client_connected(reader, writer): # Communicate with the client with # reader/writer streams. For example: await reader.readline() async def main(host, port): srv = await asyncio.start_server( client_connected, host, port) await srv.serve_forever()
python, official-docs, cpython, P0
Local_Trusted_Corpus
a87c006e-d3bc-4bd6-8ce0-643fffc5ce1b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,002
supabase-export-v2
b1f36e924eb41984
Schedule *callback* to be called after the given *delay* number of seconds (can be either an int or a float). An instance of :class:`asyncio.TimerHandle` is returned which can be used to cancel the callback.
trusted_official_docs
CPython Docs
Schedule *callback* to be called after the given *delay* number of seconds (can be either an int or a float). An instance of :class:`asyncio.TimerHandle` is returned which can be used to cancel the callback.
Schedule *callback* to be called after the given *delay* number of seconds (can be either an int or a float). An instance of :class:`asyncio.TimerHandle` is returned which can be used to cancel the callback.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8e1094f-42e7-487d-a199-b769b1383623
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,017
supabase-export-v2
0c9b2e89f1744b05
.. versionchanged:: 3.7 The *context* keyword-only parameter was added. See :pep:`567` for more details. .. versionchanged:: 3.8 In Python 3.7 and earlier with the default event loop implementation, the difference between *when* and the current time could not exceed one day. This has been fixed in Python 3.8.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.7 The *context* keyword-only parameter was added. See :pep:`567` for more details. .. versionchanged:: 3.8 In Python 3.7 and earlier with the default event loop implementation, the difference between *when* and the current time could not exceed one day. This has been fixed in Python 3.8.
.. versionchanged:: 3.7 The *context* keyword-only parameter was added. See :pep:`567` for more details. .. versionchanged:: 3.8 In Python 3.7 and earlier with the default event loop implementation, the difference between *when* and the current time could not exceed one day. This has been fixed in Python 3.8.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a98c831f-b261-4ac2-91a3-7129e08ffeca
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,110
supabase-export-v2
14af4649d2f4f8c8
The *reuse_address* parameter is no longer supported, as using :ref:`socket.SO_REUSEADDR <socket-unix-constants>` poses a significant security concern for UDP. Explicitly passing ``reuse_address=True`` will raise an exception. When multiple processes with differing UIDs assign sockets to an identical UDP socket addres...
trusted_official_docs
CPython Docs
The *reuse_address* parameter is no longer supported, as using :ref:`socket.SO_REUSEADDR <socket-unix-constants>` poses a significant security concern for UDP. Explicitly passing ``reuse_address=True`` will raise an exception. When multiple processes with differing UIDs assign sockets to an identical UDP socket addres...
The *reuse_address* parameter is no longer supported, as using :ref:`socket.SO_REUSEADDR <socket-unix-constants>` poses a significant security concern for UDP. Explicitly passing ``reuse_address=True`` will raise an exception. When multiple processes with differing UIDs assign sockets to an identical UDP socket addres...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aafa67d4-deb6-4905-8122-5515e21d429b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,135
supabase-export-v2
dcbf9acf9d8fb7bb
or :const:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* will be determined from host name (defaults to :const:`~socket.AF_UNSPEC`). * *flags* is a bitmask for :meth:`getaddrinfo`.
trusted_official_docs
CPython Docs
or :const:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* will be determined from host name (defaults to :const:`~socket.AF_UNSPEC`). * *flags* is a bitmask for :meth:`getaddrinfo`.
or :const:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* will be determined from host name (defaults to :const:`~socket.AF_UNSPEC`). * *flags* is a bitmask for :meth:`getaddrinfo`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab83fc8f-885a-4691-9eee-4416cde8e06d
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,044
supabase-export-v2
5ad56c03a375f49d
.. versionchanged:: 3.13.4 *name* is no longer passed to task factories. *context* is no longer passed to task factories if it is ``None``. .. versionchanged:: 3.14 *name* and *context* are now unconditionally passed on to task factories again.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.13.4 *name* is no longer passed to task factories. *context* is no longer passed to task factories if it is ``None``. .. versionchanged:: 3.14 *name* and *context* are now unconditionally passed on to task factories again.
.. versionchanged:: 3.13.4 *name* is no longer passed to task factories. *context* is no longer passed to task factories if it is ``None``. .. versionchanged:: 3.14 *name* and *context* are now unconditionally passed on to task factories again.
python, official-docs, cpython, P0
Local_Trusted_Corpus
acb3ead9-c0e8-446b-a623-b5ae85aae5b8
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,109
supabase-export-v2
6d6b1a1d39b78705
.. versionchanged:: 3.8 Added support for Windows. .. versionchanged:: 3.8.1 The *reuse_address* parameter is no longer supported, as using :ref:`socket.SO_REUSEADDR <socket-unix-constants>` poses a significant security concern for UDP. Explicitly passing ``reuse_address=True`` will raise an exception.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 Added support for Windows. .. versionchanged:: 3.8.1 The *reuse_address* parameter is no longer supported, as using :ref:`socket.SO_REUSEADDR <socket-unix-constants>` poses a significant security concern for UDP. Explicitly passing ``reuse_address=True`` will raise an exception.
.. versionchanged:: 3.8 Added support for Windows. .. versionchanged:: 3.8.1 The *reuse_address* parameter is no longer supported, as using :ref:`socket.SO_REUSEADDR <socket-unix-constants>` poses a significant security concern for UDP. Explicitly passing ``reuse_address=True`` will raise an exception.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad90483e-4ed0-406b-9e13-01232aea842b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,178
supabase-export-v2
7582d57063d12c82
The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method. * *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the accepted connections.
trusted_official_docs
CPython Docs
The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method. * *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the accepted connections.
The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method. * *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the accepted connections.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aebdb6cd-130f-47f6-828e-986e9df90871
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,162
supabase-export-v2
f18510de967af526
name of a Unix domain socket, and is required, unless a *sock* argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported. If *cleanup_socket* is true then the Unix socket will automatically be removed from the filesystem when the server is closed, unless ...
trusted_official_docs
CPython Docs
name of a Unix domain socket, and is required, unless a *sock* argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported. If *cleanup_socket* is true then the Unix socket will automatically be removed from the filesystem when the server is closed, unless ...
name of a Unix domain socket, and is required, unless a *sock* argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported. If *cleanup_socket* is true then the Unix socket will automatically be removed from the filesystem when the server is closed, unless ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b0f9ca8d-20ea-4b1b-8ccb-eba0ad3bfd64
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,349
supabase-export-v2
1c445edf66a4dfbe
occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior. *context* parameter has the same meaning as in :meth:`call_exception_handler`.
trusted_official_docs
CPython Docs
occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior. *context* parameter has the same meaning as in :meth:`call_exception_handler`.
occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior. *context* parameter has the same meaning as in :meth:`call_exception_handler`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b100b701-0c67-46bd-b9ec-cadec7090740
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,082
supabase-export-v2
abdc3539ed765353
Added the *happy_eyeballs_delay* and *interleave* parameters. Happy Eyeballs Algorithm: Success with Dual-Stack Hosts. When a server's IPv4 path and protocol are working, but the server's IPv6 path and protocol are not working, a dual-stack client application experiences significant connection delay compared to an I...
trusted_official_docs
CPython Docs
Added the *happy_eyeballs_delay* and *interleave* parameters. Happy Eyeballs Algorithm: Success with Dual-Stack Hosts. When a server's IPv4 path and protocol are working, but the server's IPv6 path and protocol are not working, a dual-stack client application experiences significant connection delay compared to an I...
Added the *happy_eyeballs_delay* and *interleave* parameters. Happy Eyeballs Algorithm: Success with Dual-Stack Hosts. When a server's IPv4 path and protocol are working, but the server's IPv6 path and protocol are not working, a dual-stack client application experiences significant connection delay compared to an I...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b10b6ff3-982f-40a9-bba5-78d87adcb2b7
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,967
supabase-export-v2
1989461950552a66
.. method:: loop.shutdown_asyncgens() :async: Schedule all currently open :term:`asynchronous generator` objects to close with an :meth:`~agen.aclose` call. After calling this method, the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all schedul...
trusted_official_docs
CPython Docs
.. method:: loop.shutdown_asyncgens() :async: Schedule all currently open :term:`asynchronous generator` objects to close with an :meth:`~agen.aclose` call. After calling this method, the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all schedul...
.. method:: loop.shutdown_asyncgens() :async: Schedule all currently open :term:`asynchronous generator` objects to close with an :meth:`~agen.aclose` call. After calling this method, the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all schedul...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b4eae942-19bb-4bda-b918-637160c502a4
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,964
supabase-export-v2
fc8e5c81a73a48b7
The loop must not be running when this function is called. Any pending callbacks will be discarded. This method clears all queues and shuts down the executor, but does not wait for the executor to finish.
trusted_official_docs
CPython Docs
The loop must not be running when this function is called. Any pending callbacks will be discarded. This method clears all queues and shuts down the executor, but does not wait for the executor to finish.
The loop must not be running when this function is called. Any pending callbacks will be discarded. This method clears all queues and shuts down the executor, but does not wait for the executor to finish.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b76baa31-ba98-4efa-a99c-325bdab61810
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,003
supabase-export-v2
3a5cbbcdde008dc2
An instance of :class:`asyncio.TimerHandle` is returned which can be used to cancel the callback. *callback* will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are called is undefined.
trusted_official_docs
CPython Docs
An instance of :class:`asyncio.TimerHandle` is returned which can be used to cancel the callback. *callback* will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are called is undefined.
An instance of :class:`asyncio.TimerHandle` is returned which can be used to cancel the callback. *callback* will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are called is undefined.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b76e800a-72dc-44ae-94c9-2b90c6527907
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,064
supabase-export-v2
ae1d57c8b104a5db
a value for *server_hostname*. If *server_hostname* is an empty string, hostname matching is disabled (which is a serious security risk, allowing for potential man-in-the-middle attacks). * *family*, *proto*, *flags* are the optional address family, protocol and flags to be passed through to getaddrinfo() for *host* r...
trusted_official_docs
CPython Docs
a value for *server_hostname*. If *server_hostname* is an empty string, hostname matching is disabled (which is a serious security risk, allowing for potential man-in-the-middle attacks). * *family*, *proto*, *flags* are the optional address family, protocol and flags to be passed through to getaddrinfo() for *host* r...
a value for *server_hostname*. If *server_hostname* is an empty string, hostname matching is disabled (which is a serious security risk, allowing for potential man-in-the-middle attacks). * *family*, *proto*, *flags* are the optional address family, protocol and flags to be passed through to getaddrinfo() for *host* r...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b837e2b8-6e28-4cd9-8839-b60b65e50a54
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,916
supabase-export-v2
356de9eb3decfbe3
call its methods. This section is intended mostly for authors of lower-level code, libraries, and frameworks, who need finer control over the event loop behavior. .. rubric:: Obtaining the Event Loop
trusted_official_docs
CPython Docs
call its methods. This section is intended mostly for authors of lower-level code, libraries, and frameworks, who need finer control over the event loop behavior. .. rubric:: Obtaining the Event Loop
call its methods. This section is intended mostly for authors of lower-level code, libraries, and frameworks, who need finer control over the event loop behavior. .. rubric:: Obtaining the Event Loop
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9e283f2-0863-4d03-aa45-34bf8b507776
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,283
supabase-export-v2
d45ca94c53465ae8
increased timeouts. To mitigate this, consider using a custom executor for other user tasks, or setting a default executor with a larger number of workers. .. versionchanged:: 3.7 Both *getaddrinfo* and *getnameinfo* methods were always documented to return a coroutine, but prior to Python 3.7 they were, in fact, re...
trusted_official_docs
CPython Docs
increased timeouts. To mitigate this, consider using a custom executor for other user tasks, or setting a default executor with a larger number of workers. .. versionchanged:: 3.7 Both *getaddrinfo* and *getnameinfo* methods were always documented to return a coroutine, but prior to Python 3.7 they were, in fact, re...
increased timeouts. To mitigate this, consider using a custom executor for other user tasks, or setting a default executor with a larger number of workers. .. versionchanged:: 3.7 Both *getaddrinfo* and *getnameinfo* methods were always documented to return a coroutine, but prior to Python 3.7 they were, in fact, re...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba04c3fa-6513-4245-817d-f37c30b64888
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,010
supabase-export-v2
e686f2aa1e9c06ac
In Python 3.7 and earlier with the default event loop implementation, the *delay* could not exceed one day. This has been fixed in Python 3.8. .. method:: loop.call_at(when, callback, *args, context=None)
trusted_official_docs
CPython Docs
In Python 3.7 and earlier with the default event loop implementation, the *delay* could not exceed one day. This has been fixed in Python 3.8. .. method:: loop.call_at(when, callback, *args, context=None)
In Python 3.7 and earlier with the default event loop implementation, the *delay* could not exceed one day. This has been fixed in Python 3.8. .. method:: loop.call_at(when, callback, *args, context=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc9a128b-6380-4d56-bc43-836e64cb521e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,012
supabase-export-v2
6c02a967943412b4
Schedule *callback* to be called at the given absolute timestamp *when* (an int or a float), using the same time reference as :meth:`loop.time`. This method's behavior is the same as :meth:`call_later`.
trusted_official_docs
CPython Docs
Schedule *callback* to be called at the given absolute timestamp *when* (an int or a float), using the same time reference as :meth:`loop.time`. This method's behavior is the same as :meth:`call_later`.
Schedule *callback* to be called at the given absolute timestamp *when* (an int or a float), using the same time reference as :meth:`loop.time`. This method's behavior is the same as :meth:`call_later`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
be6c869c-de00-48a9-b0f2-a7b2f1da2563
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,517
supabase-export-v2
8403f2c41a304032
# Simulate the reception of data from the network loop.call_soon(wsock.send, 'abc'.encode()) try: # Run the event loop loop.run_forever() finally: # We are done. Close sockets and the event loop. rsock.close() wsock.close() loop.close()
trusted_official_docs
CPython Docs
# Simulate the reception of data from the network loop.call_soon(wsock.send, 'abc'.encode()) try: # Run the event loop loop.run_forever() finally: # We are done. Close sockets and the event loop. rsock.close() wsock.close() loop.close()
# Simulate the reception of data from the network loop.call_soon(wsock.send, 'abc'.encode()) try: # Run the event loop loop.run_forever() finally: # We are done. Close sockets and the event loop. rsock.close() wsock.close() loop.close()
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf274290-0c86-482d-b4f4-6e4942e4bf6a
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,141
supabase-export-v2
ba58bab0e5da0dac
* *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over the accepted connections. * *reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire. If not specified will automatically be set to ``True`` on Unix.
trusted_official_docs
CPython Docs
* *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over the accepted connections. * *reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire. If not specified will automatically be set to ``True`` on Unix.
* *ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over the accepted connections. * *reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire. If not specified will automatically be set to ``True`` on Unix.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c173d0ab-5d6e-4268-9528-4274ddbb83c6
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,915
supabase-export-v2
c4782d78bccc1e70
The event loop is the core of every asyncio application. Event loops run asynchronous tasks and callbacks, perform network IO operations, and run subprocesses. Application developers should typically use the high-level asyncio functions, such as :func:`asyncio.run`, and should rarely need to reference the loop object o...
trusted_official_docs
CPython Docs
The event loop is the core of every asyncio application. Event loops run asynchronous tasks and callbacks, perform network IO operations, and run subprocesses. Application developers should typically use the high-level asyncio functions, such as :func:`asyncio.run`, and should rarely need to reference the loop object o...
The event loop is the core of every asyncio application. Event loops run asynchronous tasks and callbacks, perform network IO operations, and run subprocesses. Application developers should typically use the high-level asyncio functions, such as :func:`asyncio.run`, and should rarely need to reference the loop object o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c3882dd5-c029-449e-9c10-94ea0d6ef73d
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,263
supabase-export-v2
243981b1ec295275
Accept a connection. Modeled after the blocking :meth:`socket.accept() <socket.socket.accept>` method. The socket must be bound to an address and listening for connections. The return value is a pair ``(conn, address)`` where *conn* is a *new* socket object usable to send and receive data on the connection, and *add...
trusted_official_docs
CPython Docs
Accept a connection. Modeled after the blocking :meth:`socket.accept() <socket.socket.accept>` method. The socket must be bound to an address and listening for connections. The return value is a pair ``(conn, address)`` where *conn* is a *new* socket object usable to send and receive data on the connection, and *add...
Accept a connection. Modeled after the blocking :meth:`socket.accept() <socket.socket.accept>` method. The socket must be bound to an address and listening for connections. The return value is a pair ``(conn, address)`` where *conn* is a *new* socket object usable to send and receive data on the connection, and *add...
python, official-docs, cpython, P0
Local_Trusted_Corpus