rename all TaskGroup() fields to "taskgroup"
for consistency
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user