Message412988
Something like:
_unset = ['unset']
class CachedAwaitable:
def __init__(self, awaitable):
self.awaitable = awaitable
self.result = _unset
def __await__(self):
if self.result is _unset:
self.result = yield from self.awaitable.__await__()
return self.result |
|
Date |
User |
Action |
Args |
2022-02-10 10:04:54 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, asvetlov, yselivanov, uranusjr |
2022-02-10 10:04:54 | serhiy.storchaka | set | messageid: <1644487494.07.0.194906114846.issue46622@roundup.psfhosted.org> |
2022-02-10 10:04:54 | serhiy.storchaka | link | issue46622 messages |
2022-02-10 10:04:54 | serhiy.storchaka | create | |
|