Cancellable
Extends:
BusEvent<T> → Cancellable
An event that can be cancelled.
Method Summary
Public Methods | ||
public |
cancel() Cancels the event. |
|
public |
results(): Observable<this> Creates an observable that waits for the results of the event. |
Public Methods
public results(): Observable<this> source
Creates an observable that waits for the results of the event.
Example:
const event = new Cancellable(null);
bus.emit(event);
event.results().subscribe(() => {
// The event was successful and NOT cancelled.
});