Refactor ThreadSafeSingleton provider to use async mode api

This commit is contained in:
Roman Mogylatov 2021-01-01 22:29:10 -05:00
parent cf69a63915
commit 913b562369
2 changed files with 2080 additions and 2174 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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