def wait(self):
'''
Wait for a single signal from the signal set to arrive.
'''
if not self.watching:
async with self:
return await self.wait()
while True:
if self.pending:
return signal.Signals(self.pending.popleft())
await _sigwait(self)
评论列表
文章目录