We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51529b6 commit 1fa92c3Copy full SHA for 1fa92c3
api/python/slint/slint/__init__.py
@@ -403,7 +403,9 @@ def _callback_decorator(
403
404
try:
405
import inspect
406
+
407
if inspect.iscoroutinefunction(callable):
408
409
def run_as_task(*args, **kwargs) -> None: # type: ignore
410
loop = asyncio.get_event_loop()
411
loop.create_task(callable(*args, **kwargs))
0 commit comments