mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-08-14 08:54:44 +03:00
Expose null awaitables
This commit is contained in:
parent
c97a0cc515
commit
c1f14a876a
|
@ -697,3 +697,10 @@ cdef inline object __future_result(object instance):
|
||||||
future_result = asyncio.Future()
|
future_result = asyncio.Future()
|
||||||
future_result.set_result(instance)
|
future_result.set_result(instance)
|
||||||
return future_result
|
return future_result
|
||||||
|
|
||||||
|
|
||||||
|
cdef class NullAwaitable:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
cdef NullAwaitable NULL_AWAITABLE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user