Creates a synchronous promise wrapper for the specified value
Wraps a callback into a new function that never calls the target until all specified flags are resolved. The function returns a new function that takes a string flag and resolves it. After all, flags are resolved, the last function invokes the target function. If you try to invoke the function after the first time resolving, ii won't be executed.
callback function that is invoked after resolving all flags
flags to resolve
Wraps a callback into a new function that never calls the target until all specified flags are resolved. The function returns a new function that takes a string flag and resolves it. After all, flags are resolved, the last function invokes the target function. If you try to invoke the function after the first time resolving, ii won't be executed.
Returns a promise that will be resolved after emitting of all events from the specified emitter
events to listen
core/event
This module provides a bunch of helper functions to handle events in more flexibly way.
resolveAfterEvents
The function returns a promise that will be resolved after emitting of all events from the specified emitter.
createsAsyncSemaphore
The function wraps a callback into a new function that never calls the target until all specified flags are resolved.
createsAsyncSemaphore
returns a new function that takes a string flag and resolves it. After all, flags are resolved, the last function invokes the target function. If you try to invoke the function after the first time resolving, ii won't be executed.