forked from M-Labs/artiq
applets.simple: add kwargs to AppletControlRPC (#2155)
Co-authored-by: Simon Renblad <srenblad@m-labs.hk>
This commit is contained in:
parent
c46ac6f87d
commit
c4259dab18
|
@ -44,8 +44,8 @@ class AppletControlRPC:
|
||||||
self.dataset_ctl = dataset_ctl
|
self.dataset_ctl = dataset_ctl
|
||||||
self.background_tasks = set()
|
self.background_tasks = set()
|
||||||
|
|
||||||
def _background(self, coro, *args):
|
def _background(self, coro, *args, **kwargs):
|
||||||
task = self.loop.create_task(coro(*args))
|
task = self.loop.create_task(coro(*args, **kwargs))
|
||||||
self.background_tasks.add(task)
|
self.background_tasks.add(task)
|
||||||
task.add_done_callback(self.background_tasks.discard)
|
task.add_done_callback(self.background_tasks.discard)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue