SimpleCompletionHandler

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun completed(result: V, attachment: Unit)
Link copied to clipboard
open override fun failed(exc: Throwable, attachment: Unit)
Link copied to clipboard

Perform the specified I/O operation, guarded by a try/catch that invokes the same failure handler as the operation itself would in the event of an asynchronous failure.