mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-01 02:43:29 +03:00
Refactor ThreadSafeSingleton provider to use async mode api
This commit is contained in:
parent
cf69a63915
commit
913b562369
File diff suppressed because it is too large
Load Diff
|
@ -2308,11 +2308,6 @@ cdef class ThreadSafeSingleton(BaseSingleton):
|
||||||
|
|
||||||
self.__storage = instance
|
self.__storage = instance
|
||||||
|
|
||||||
if self.__async:
|
|
||||||
result = asyncio.Future()
|
|
||||||
result.set_result(instance)
|
|
||||||
return result
|
|
||||||
|
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user