Skip to content

Commit

Permalink
Check that cothread isn't passed an async function
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWells-diamond committed Sep 19, 2024
1 parent ca904f6 commit 7c886b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions softioc/cothread_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ def wrapper():
if completion:
completion(*completion_args)

assert not inspect.iscoroutinefunction(func)
assert not inspect.iscoroutinefunction(completion)

self.__dispatcher(wrapper)

0 comments on commit 7c886b7

Please sign in to comment.