We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to accomplish the same as the below using Python instead of Rust?
Rust
fn sum_async(&self, x: i32, y: i32, callback: Value) -> () { thread::spawn(move || { callback.call(None, &make_args!(x + y), None).unwrap(); }); }
JavaScript
function sum_async(a, b) { return new Promise((resolve) => { Window.this.xcall('sum_async', a, b, resolve); }); }
The text was updated successfully, but these errors were encountered:
Exactly the same: https://docs.python.org/3/library/threading.html
Also there's https://docs.python.org/3/library/asyncio.html
Sorry, something went wrong.
No branches or pull requests
How to accomplish the same as the below using Python instead of Rust?
Rust
JavaScript
The text was updated successfully, but these errors were encountered: