fun <T : Any> succeeding(): Handler<AsyncResult<T>>
Create an asynchronous result handler that expects a success.
- the asynchronous result type.
Return
the handler.
fun <T : Any> succeeding(nextHandler: Handler<T>): Handler<AsyncResult<T>>
Create an asynchronous result handler that expects a success, and passes the value to another handler.
nextHandler - the value handler to call on success.
- the asynchronous result type.
Return
the handler.