Skip to content

Commit 7083fc5

Browse files
📜🤖 Added by blurb_it.
1 parent 6b76a37 commit 7083fc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Add ``_get_snapshot()`` method to :class:`concurrent.futures.Future` to
2+
atomically retrieve all future state in a single lock acquisition. This speeds
3+
up :mod:`asyncio`'s ``_copy_future_state()`` by up to 4x when transferring state
4+
from :class:`concurrent.futures.Future` to :class:`asyncio.Future`. Patch by J. Nick Koston.

0 commit comments

Comments
 (0)