Shane Harvey
a1652da2c8
Document optional 'task'/'asyncgen' fields in call_exception_handler ( #21735 )
2020-11-26 15:24:48 +02:00
Roger Iyengar
a16d697049
Improve asyncio.loop.call_soon() documentation (GH-20883)
...
* Add a glossary entry for the term "callback"
* Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2020-06-22 22:16:00 -04:00
idomic
8af4712a16
bpo-39128: Added algorithm description (GH-18624)
...
# [bpo-39128](https://bugs.python.org/issue39128 ): happy eyeballs description
# [3.9] 39128 - happy eyeballs description (GH-18624)
# [3.8] 39128 - happy eyeballs description (GH-18624)
https://bugs.python.org/issue39128
2020-02-24 06:59:40 -08:00
idomic
5305cc9dbf
bpo-39128: Added happy_eyeballs_delay, interleave to function signature (GH-18315)
2020-02-10 10:48:40 +01:00
Victor Stinner
b9783d2e03
bpo-39429: Add a new "Python Development Mode" doc page (GH-18132)
2020-01-24 10:22:18 +01:00
Andrew Svetlov
2c49becc69
Fix asyncio.get_event_loop() documentation (GH-18051)
...
Mention that the function implicitly creates new event loop only if called from the main thread.
2020-01-21 00:46:38 +02:00
Jesús Cea
b0d4949f1f
Doc typo ( #17667 )
2019-12-20 03:21:03 +01:00
Kyle Stanley
ab513a38c9
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR ( #17311 )
2019-12-09 15:21:10 +01:00
Kyle Stanley
f900064ac4
docs: Add asyncio source code links (GH-16640)
2019-10-10 19:18:46 -04:00
Yury Selivanov
6758e6e12a
bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" ( #16482 )
...
See https://bugs.python.org/issue38242 for more details
2019-09-29 21:59:55 -07:00
Kyle Stanley
9fdc64cf12
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() (GH-15735)
2019-09-19 15:47:22 +03:00
Xtreak
6793cce155
bpo-36889: Document asyncio Stream and StreamServer (GH-14203)
2019-06-24 21:16:58 +03:00
Ben Darnell
9ffca670ed
asyncio: Fix docs for default event loop ( #14308 )
...
When the Windows default event loop changed, `asyncio-policy.rst` was updated but `asyncio-eventloop.rst` was missed.
2019-06-22 10:38:20 -07:00
Łukasz Langa
7f9a2ae780
Revert "bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)" ( #13802 )
...
This reverts commit 0f0a30f4da
.
2019-06-04 13:03:20 +02:00
Victor Stinner
0f0a30f4da
bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)
...
Add BaseEventLoop.wait_executor_on_close attribute: true by default.
loop.close() now waits for the default executor to finish by default.
Set loop.wait_executor_on_close attribute to False to not wait for
the executor.
2019-06-03 23:31:04 +02:00
Andrew Svetlov
bafd4b5ac8
bpo-29883: Asyncio proactor udp (GH-13440)
...
Follow-up for #1067
https://bugs.python.org/issue29883
2019-05-28 02:52:15 -07:00
sbstp
f0d4c64019
bpo-36686: Improve the documentation of the std* params in loop.subprocess_exec (GH-13586)
...
https://bugs.python.org/issue36686
2019-05-27 16:51:19 -07:00
twisteroid ambassador
88f07a804a
bpo-33530: Implement Happy Eyeballs in asyncio, v2 (GH-7237)
...
Added two keyword arguments, `delay` and `interleave`, to
`BaseEventLoop.create_connection`. Happy eyeballs is activated if
`delay` is specified.
We now have documentation for the new arguments. `staggered_race()` is in its own module, but not exported to the main asyncio package.
https://bugs.python.org/issue33530
2019-05-05 04:14:35 -07:00
Alexander Vasin
ceb842e155
Fixed typo (GH-11522)
...
Given example does not run, loop variable is missing.
Secondly, this is bad example how to handle shutdown signal, because it would cause `RuntimeError: Event loop stopped before Future completed.`
Perhaps it would be better to cancel all tasks instead of closing loop directly?
Did not create issue, because question is quite simple.
2019-05-03 08:25:36 -07:00
Enrico Alarico Carbognani
7e954e7de4
bpo-36651: Fixed Asyncio Event Loop documentation inconsistency (GH-12866)
...
# [bpo-36651](https://bugs.python.org/issue36651 ): Fixed Asyncio Event Loop documentation inconsistency
In the documentation for the call_later and the call_at methods there is a note which says that the delay cannot be longer than a day, but both methods have a note saying that this limitation was removed in Python 3.8
Here I fixed this issue by removing the pre-exising note and added a versionchanged.
To test my changes I have rebuilt the documentation with ```make html```. I did not have any errors and the effected page displayed correctly on a browser.
https://bugs.python.org/issue36651
2019-04-18 05:43:14 -07:00
Emmanuel Arias
df5cdc1112
bpo-36074: Result of `asyncio.Server.sockets` after `Server.close()` after is not clear (GH-11987)
...
[bpo-36074](https://bugs.python.org/issue36074 ): It becomes clear on that the None is still return for server closed.
https://bugs.python.org/issue36074
2019-02-22 09:34:41 -08:00
Hrvoje Nikšić
e3666fc8ef
bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145)
2018-12-18 16:31:29 -05:00
Naglis
1747334794
bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)
...
Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature.
https://bugs.python.org/issue35395
2018-12-03 23:31:15 -08:00
Andriy Maletsky
b83d917faf
Doc: fix asyncio loop.close() description (GH-10229)
...
Needs backport to 3.7. In 3.6 the description is correct.
2018-10-29 14:39:21 -07:00
Cheryl Sabella
2d6097d027
bpo-11233: Create availability directive for documentation (GH-9692)
...
Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
Original patch by Georg Brandl.
Co-Authored-By: Georg Brandl <georg@python.org>
2018-10-12 16:55:20 +02:00
Victor Stinner
37aae9dcf1
bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)
...
Since ProactorEventLoop is now the default in 3.8, remove examples
using it explicitly on Windows.
https://bugs.python.org/issue34687
2018-09-28 08:40:08 -07:00
Yury Selivanov
e247b46cba
bpo-33649: More improvements (GH-9439)
2018-09-20 12:43:59 -04:00
Yury Selivanov
471503954a
bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)
...
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
2018-09-18 17:55:44 -04:00
Yury Selivanov
ac94e38d07
bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)
2018-09-17 23:58:00 -04:00
Elvis Pranskevichus
1fa2ec49be
bpo-33649: A copy-editing pass on asyncio documentation (GH-9376)
2018-09-17 19:16:44 -04:00
Yury Selivanov
394374e30c
bpo-33649: Add low-level APIs index. (GH-9364)
2018-09-17 15:35:24 -04:00
Bumsik Kim
5cc583d940
bpo-33649: Clarify protocol_factory as a method parameter (GH-9330)
2018-09-16 16:40:44 -07:00
Yury Selivanov
805e27eff6
bpo-33649: Fix asyncio-dev (GH-9324)
2018-09-14 16:57:11 -07:00
Yury Selivanov
7372c3bbef
bpo-33649: Add high-level APIs cheat-sheet (GH-9319)
2018-09-14 15:11:24 -07:00
Yury Selivanov
3faaa8857a
bpo-33649: Refresh Tasks and Futures pages ( #9314 )
...
* bpo-33649: Refresh Tasks and Futures pages
* Fixes
* Fix markup
2018-09-14 13:32:07 -07:00
Carol Willing
5b7cbd602e
bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)
2018-09-12 17:05:17 -07:00
Yury Selivanov
7c7605ff11
bpo-33649: First asyncio docs improvement pass (GH-9142)
...
Rewritten/updated sections:
* Event Loop APIs
* Transports & Protocols
* Streams
* Exceptions
* Policies
* Queues
* Subprocesses
* Platforms
2018-09-11 09:54:40 -07:00
Alex Grönholm
cca4eec3c0
bpo-34270: Make it possible to name asyncio tasks (GH-8547)
...
Co-authored-by: Antti Haapala <antti.haapala@anttipatterns.com>
2018-08-08 17:06:47 -04:00
MartinAltmayer
944451cd8d
bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)
2018-07-31 10:06:12 -04:00
Elvis Pranskevichus
22d25085db
bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)
...
Various asyncio internals expect that the default executor is a
`ThreadPoolExecutor`, so deprecate passing anything else to
`loop.set_default_executor()`.
2018-07-30 12:42:43 +02:00
MarcoFalke
7e0d882a98
doc: Fix typo in asyncio-eventloop.rst (GH-7345)
...
This is a fixup to 19a44f63c7
2018-06-09 16:09:13 -07:00
Elvis Pranskevichus
c0d062f523
bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)
2018-06-08 11:36:00 -04:00
Yury Selivanov
9602643120
bpo-33734: asyncio/ssl: a bunch of bugfixes ( #7321 )
...
* Fix AttributeError (not all SSL exceptions have 'errno' attribute)
* Increase default handshake timeout from 10 to 60 seconds
* Make sure start_tls can be cancelled correctly
* Make sure any error in SSLProtocol gets propagated (instead of just being logged)
2018-06-04 11:32:35 -04:00
Yury Selivanov
28b9178023
bpo-32436: Document PEP 567 changes to asyncio. (GH-7073)
2018-05-23 13:35:04 -04:00
Romuald Brunet
0ded580403
Add versionchanged in create_datagram_endpoint doc ( #4697 )
...
Most of the parameters were added in 3.4.4 (b9bf913ab3
), but this
change was not documented
2018-05-14 19:22:00 +03:00
Sam Dunster
65a34709f6
Fix senfile typo ( #6265 )
...
* Also in docs
2018-03-27 17:47:38 -07:00
Andrew Svetlov
17ab8f0e8e
Fix a typo in asyncio docs ( #5721 )
2018-02-17 19:44:35 +02:00
Andrew Svetlov
3d4dbd8f01
Implement TimerHandle.when() ( #5473 )
2018-02-01 19:59:32 +02:00
Yury Selivanov
bec2372b7e
bpo-32327: Revert loop.run_in_executor behaviour: return a Future. ( #5392 )
...
I've run some tests on 3.7 asyncio and it appears that too many
things assume that run_in_executor returns a Future.
2018-01-28 14:09:40 -05:00
Elvis Pranskevichus
ee72ac0683
bpo-32622: Fix AbstractEventLoop.sendfile signature in documentation. (GH-5368)
2018-01-27 17:11:10 -05:00