awaitSync

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.

T
awaitSync
(
T
E
)
(
Promise!(T, E) p
)

Meta