Barrier since v0.11
Object that could be used to postpone the execution of the Query or Mutation. Barrier can be created with the createBarrier
function and applied to the Query or Mutation with the applyBarrier
operator.
For user-land code, it is a read-only object that have the following properties:
$active
Store with the current status of the Barrier. It must not be changed directly. Can be true
or false
. If it is true
then the Barrier is active and the execution of the Query or Mutation will be postponed in case of applying the Barrier to it.
activated
Event that will be triggered when the Barrier is activated.
deactivated
Event that will be triggered when the Barrier is deactivated.
performed
since v0.13
Event that triggers every time when all Barrier's performers are finished.
forceDeactivate
since v0.13
Event that can be called to forcely deactivate Barrier.