mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-12-01 14:04:01 +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
|
||||
|
||||
if self.__async:
|
||||
result = asyncio.Future()
|
||||
result.set_result(instance)
|
||||
return result
|
||||
|
||||
return instance
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user