Provides mechanism for blocking async processes and unblocking them from an external context.
The value that can be passed to unblock to resolve the block promise.
true if Blocker is blocked and wasn't unblocked yet, or false otherwise.
true
false
Returns promises that is fulfilled with the result passed to unblock. If blocker is already blocked then the same promise is returned.
Fulfills the promise returned from block. If the blocker isn't blocked then no-op.
Provides mechanism for blocking async processes and unblocking them from an external context.