an available solution to use async/await in jint at present #943
xiyuan-fengyu
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
detail https://github.com/xiyuan-fengyu/JintAsyncAwait
use typescript to write code, and then compile it into es5 version
use JavaScriptBridge to call the async function
ts example
compiled js example
run the program, the output is as follows:
Beta Was this translation helpful? Give feedback.
All reactions