Synchronously starts and event loop and waits for it to exit. Assumes that the promise p is resolved during the event loop; Propagates any return value or exception to the caller.
See Implementation
Synchronously starts and event loop and waits for it to exit. Assumes that the promise p is resolved during the event loop; Propagates any return value or exception to the caller.