2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

applets.simple: add kwargs to AppletControlRPC (#2155)

Co-authored-by: Simon Renblad <srenblad@m-labs.hk>
This commit is contained in:
Simon Renblad 2023-08-05 11:38:07 +08:00 committed by GitHub
parent c46ac6f87d
commit c4259dab18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ class AppletControlRPC:
self.dataset_ctl = dataset_ctl
self.background_tasks = set()
def _background(self, coro, *args):
task = self.loop.create_task(coro(*args))
def _background(self, coro, *args, **kwargs):
task = self.loop.create_task(coro(*args, **kwargs))
self.background_tasks.add(task)
task.add_done_callback(self.background_tasks.discard)