From c4259dab18026905ef0002dfad4a203298ee7fbe Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Sat, 5 Aug 2023 11:38:07 +0800 Subject: [PATCH] applets.simple: add kwargs to AppletControlRPC (#2155) Co-authored-by: Simon Renblad --- artiq/applets/simple.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/applets/simple.py b/artiq/applets/simple.py index c7c7c81df..363314a9e 100644 --- a/artiq/applets/simple.py +++ b/artiq/applets/simple.py @@ -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)