Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProvide wrapper for "resolve this promise on response from thread" #22518
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A lot of the WebVR/WebXR stuff involves communicating with another thread and waiting on the response to resolve a promise.
We should have a helper function that, given a closure and an IPC receiver, will wait for a message and once it has arrived, call the closure on the message's response and resolve the promise with its result