-
|
I tried |
Beta Was this translation helpful? Give feedback.
Answered by
jolaf
Jan 15, 2026
Replies: 1 comment 10 replies
-
|
every PyScript is async by default ... you have top-level await in any script, either main or workers ... does this answer? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, the correct answer is:
Don't call
asyncfunctions from sync functions in a worker, just__export__anasyncfunction directly andawaitits counterpart in main thread.