1
0

rename all TaskGroup() fields to "taskgroup"

for consistency
This commit is contained in:
SomberNight
2020-02-27 19:00:59 +01:00
parent c8260249b0
commit ed234d3444
9 changed files with 33 additions and 33 deletions

View File

@@ -1124,14 +1124,14 @@ class NetworkJobOnDefaultServer(Logger):
"""Initialise fields. Called every time the underlying
server connection changes.
"""
self.group = SilentTaskGroup()
self.taskgroup = SilentTaskGroup()
async def _start(self, interface: 'Interface'):
self.interface = interface
await interface.group.spawn(self._start_tasks)
await interface.taskgroup.spawn(self._start_tasks)
async def _start_tasks(self):
"""Start tasks in self.group. Called every time the underlying
"""Start tasks in self.taskgroup. Called every time the underlying
server connection changes.
"""
raise NotImplementedError() # implemented by subclasses
@@ -1141,7 +1141,7 @@ class NetworkJobOnDefaultServer(Logger):
await self._stop()
async def _stop(self):
await self.group.cancel_remaining()
await self.taskgroup.cancel_remaining()
@log_exceptions
async def _restart(self, *args):