Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Duktape coroutines #7

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

bobpepin
Copy link

I had to rewrite the context handling code to allow python callbacks to be invoked from Duktape coroutines.
Duktape coroutines share a heap and global object, but each has a distinct context. In the original code, all callbacks were executed inside the context create in the constructor of DuktapeContext(), which led to bugs when using coroutines.
I also removed the threading checks, since the same Duktape context can execute code in different threads, just not at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants