Constructor
new Progress(handler)
Parameters:
Name | Type | Description |
---|---|---|
handler |
callbackHandler.<T> | a callback to be invoked for every progress reported. If not provided, you may subscribe to the events of this class or use the provided Observable. |
- Source:
Members
last :T
Type:
- T
- Source:
observable :Observable.<T>
Returns an Rx.Observable that will emit events whenever they
are reported to its subscribers.
Type:
- Observable.<T>
- Source:
Methods
reportProgress(progress) → {Progress}
Report the current progress, which is then broadcast to all listeners
and passed to this handler.
Parameters:
Name | Type | Description |
---|---|---|
progress |
T | the item that represents the progress |
- Source:
Returns:
this
- Type
- Progress