api / org.gradle.tooling / ResultHandler

ResultHandler

interface ResultHandler<T : Any>

A handler for an asynchronous operation which returns an object of type T.

Parameters

- The result type.

Since
1.0-milestone-3

Functions

onComplete

abstract fun onComplete(result: T): Unit

Handles successful completion of the operation.

onFailure

abstract fun onFailure(failure: GradleConnectionException): Unit

Handles a failed operation. This method is invoked once only for a given operation.