Deferred
Deferred class similar to jQuery's Deferred.
Definition
Package:@progress/kendo-angular-spreadsheet
Methods
Notifies progress callbacks with the given value.
The value to pass to the progress callbacks.
Adds a handler to be called when the Deferred object is notified of progress.
A function to call when progress is notified.
Returns:this
The Deferred object.
Returns the underlying Promise object.
Promise<T>
The Promise object.
Rejects the Deferred object and calls any fail callbacks with the given reason.
The reason for rejecting the promise.
Returns:this
The Deferred object.
Resolves the Deferred object and calls any done callbacks with the given value.
The value to resolve the promise with.
Returns:this
The Deferred object.
Attaches callbacks for the resolution, rejection, and progress of the Promise.
The callback to execute when the Promise is resolved.
onRejected?(reason: any) => TResult2 | PromiseLike<TResult2>The callback to execute when the Promise is rejected.
onProgress?(value: N) => voidThe callback to execute when the Promise reports progress.
Returns:Promise<TResult1 | TResult2>
A Promise for the completion of which ever callback is executed.