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

rx.call_script callback needs to await promises #2121

Merged
merged 2 commits into from Nov 2, 2023

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Nov 2, 2023

Otherwise, there is no way to get the result of an async operation executed via rx.call_script

If the call_script evaluates to a promise, await the value before handing off
to the callback (which will almost certainly be a state event handler that has
no way of waiting itself).
@picklelo picklelo merged commit b313aaf into main Nov 2, 2023
37 checks passed
@masenf masenf deleted the masenf/call-script-await-promise branch November 11, 2023 17:25
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.

None yet

2 participants