AsyncOperationNotifier<R, P> class abstract

Defines interface which is the parameter of FutureInvoker.execute method must implement to notify asynchronous operation status.

Implementers
Annotations

Constructors

AsyncOperationNotifier()

Properties

failureHandler AsyncOperationFailureHandler<R>
Called when the asynchronous operation failed with error. This call back will be called by FutureInvoker, so the asynchronous operation should not call this callback.
no setter
hashCode int
The hash code for this object.
no setterinherited
onCompleted AsyncOperationCompletedCallback<R>
Called when the asynchronous operation completed successfully. This call back will be called by FutureInvoker, so the asynchronous operation should not call this callback.
no setter
onFailed AsyncOperationFailedCallback
Called when the asynchronous operation completed with failure. This call back will be called by FutureInvoker, so the asynchronous operation should not call this callback.
no setter
onProgress AsyncOperationProgressCallback<P>
Called when the asynchronous operation have some progress. This call back will not be called by FutureInvoker, so the asynchronous operation should call this callback its own timings, and it is OK to avoid calling this callback at all. The parameter type and its values are determined by asynchronous operation, it should tells progress degreen in quantitive or qualitative, and any extra information including the label to distinguish among concurrent asynchronous operations by caller (that is, callback receiver).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited