Simple Completion Handler
class SimpleCompletionHandler<V>(completed: SimpleCompletionHandler.Companion.SuccessHelper<V>.() -> Unit, failed: SimpleCompletionHandler.Companion.FailureHelper<V>.() -> Unit) : CompletionHandler<V, Unit>
A convenient CompletionHandler implementation that takes two lambdas at construction, avoiding the hideous inner class notation.
Parameters
V
The kind of values produced on success.
Constructors
Link copied to clipboard
constructor(completed: SimpleCompletionHandler.Companion.SuccessHelper<V>.() -> Unit, failed: SimpleCompletionHandler.Companion.FailureHelper<V>.() -> Unit)