Package io.ably.lib.types
Interface Callback<T>
- All Known Implementing Classes:
-
Callback.Map
,CompletionListener.ToCallback
public interface Callback<T>
An interface allowing a client to be notified of the outcome
of an asynchronous operation.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
onSuccess
Called when the associated operation completes successfully, -
onError
Called when the associated operation completes with an error.- Parameters:
-
reason
- information about the error.
-