• Aborts the pending task if the observable emits true. If a new task is executed after the observable emitted true, then it is instantly aborted.

    Parameters

    • observable: Observable<boolean>

      The observable that trigger the abort of the executor.

    • options: AbortWhenOptions = emptyObject

      Abort options.

    Returns ExecutorPlugin