DenoDDeno
Powered by
HaibaraAiXH
Denoβ€’17mo agoβ€’
1 reply
HaibaraAiX

How to get promise fulfilled result use deno_core?

I want use jsRuntime to run js func, i use
&mut worker.js_runtime.handle_scope()
&mut worker.js_runtime.handle_scope()
to get scope, so i can't use
worker.run_event_loop(false).await.unwrap()
worker.run_event_loop(false).await.unwrap()
when result is promise. I just learned rust not long ago, I don't know how to deal with this situation of multiple variable references. worker is deno_runtime::worker::MainWorker.
carbon.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to use performance.now in deno_core
JasithJJasith / help
4mo ago
How to debug usage of deno_core?
quentusrexQquentusrex / help
2y ago
how to "slim down" deno_core crate
melodyMmelody / help
2y ago
How to do callbacks with `deno_core`?
Sean C. RoachSSean C. Roach / help
3y ago