mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
language/core: forward kernel return value
This commit is contained in:
parent
49cb570290
commit
8e594d6666
@ -76,7 +76,7 @@ def kernel(function_or_method):
|
||||
@wraps(function_or_method)
|
||||
def run_on_core(self, *args, **kwargs):
|
||||
fake_method = SimpleNamespace(__self__=self, __name__=function_or_method.__name__)
|
||||
self.core.run(fake_method, args, kwargs)
|
||||
return self.core.run(fake_method, args, kwargs)
|
||||
else:
|
||||
@wraps(function_or_method)
|
||||
def run_on_core(*args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user