Subscribe *Promise Pending Status #601
gastraight
started this conversation in
General
Replies: 2 comments
-
P.S. I mean whether it is possible to subscribe to a state change purely on a
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I was wondering the same thing. Would it be possible to expose the promise job queue? Ideally it could be driven with: https://github.com/dop251/goja_nodejs/blob/master/eventloop/eventloop.go, but you could make your own event loop. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
Please while having a
*Promise
exposed out of ajs
runtime environment into golang one in case ofPromiseStatePending
what would be the best option to wait/subscribe for event once it is naturally resolved/rejected within the initial runtime? (Except of just a periodical state check)E.g.
For the very same reason please clarify from the docs of
NewPromise
Do I see it right that
runtime.RunString
and all the similar handles its own event loop under the hood. And onceruntime.RunString
execution is ended (returned a value) whether underling event loop still keep on further processing?Thnx
Beta Was this translation helpful? Give feedback.
All reactions