Replies: 1 comment 5 replies
-
hi!,a little personal opinion. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
TL;DR: Is it possible to call a javascript async function (or callback/closure) from rust like this:
javascript_function.call_async(...).await
?I've an op that takes an async callback:
cb
is an async arrow function. I was wondering if it's possible to do something likecb.call_async(...).await
.The reason why I want this is to use
tokio::task_local
with it.Beta Was this translation helpful? Give feedback.
All reactions