Маркин Игорь, 523 группа TwoWay 10353
Владимир Суловьев, 525 TwoWay 10332
f1import asynciof1import asyncio
22
3class Portal(asyncio.Barrier):3class Portal(asyncio.Barrier):
44
5    def __init__(self, parties):5    def __init__(self, parties):
6        super().__init__(parties)6        super().__init__(parties)
7        self.topic = None7        self.topic = None
88
9    async def wait(self, topic=None):9    async def wait(self, topic=None):
10        if topic is not None:10        if topic is not None:
11            self.topic = topic11            self.topic = topic
12        return await super().wait()12        return await super().wait()
1313
14    async def reset(self):14    async def reset(self):
t15        await super().reset()t15        super().reset()
16        self.topic = None16        self.topic = None
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op