Inherited from ICancelable.cancel.
Inherited from IBoolCancelable.isCanceled.
Inherited from IAssignCancelable.update.
Returns an AssignCancelable reference that is already canceled.
const ref = AssignCancelable.alreadyCanceled()
ref.isCanceled() //=> true
const c = BooleanCancelable.empty()
ref.update(c) // cancels c
c.isCanceled() // true
The implementation returns the same reusable reference.
Returns a new AssignCancelable that's empty.
The returned reference is an instance of MultiAssignCancelable, but this is an implementation detail that may change in the future.
Initiates an AssignCancelable reference and assigns it
a reference that wraps the given cb
callback.
So this code:
AssignCancelable.of(() => console.log("cancelled"))
Is equivalent to this:
const ref = AssignCancelable.empty()
ref.update(Cancelable.of(() => console.log("cancelled")))
Generated using TypeDoc
AssignCancelable
is an IAssignCancelable class providing useful builders for cancelable references that can be assigned.