Skip to content

Commit b210926

Browse files
committed
Merge remote-tracking branch 'bdraco/thread_to_asyncio_slow' into thread_to_asyncio_slow
2 parents 8bb0e0b + 7083fc5 commit b210926

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)