Closed aparamon closed 2 years ago
Agreed! It was very confusing when I tried to await
a future from a session.get
call only to get this error:
TypeError: object Future can't be used in 'await' expression
This one would be very useful to have!
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Currently,
FuturesSession
objects are notawait
able, as they implementconcurrent.futures.Future
notasyncio.Future
.It is proposed that
requests_futures
(additionally?) providesasyncio.Future
interface, eliminating the need for boilerplateasyncio.wrap_future()
calls.