Added in API level 9

RunnableFuture

interface RunnableFuture<V : Any!> : Runnable, Future<V>
java.util.concurrent.RunnableFuture

A Future that is Runnable. Successful execution of the run method causes completion of the Future and allows access to its results.

Summary

Public methods
abstract Unit
run()

Sets this Future to the result of its computation unless it has been cancelled.

Inherited functions

Public methods

run

Added in API level 9
abstract fun run(): Unit

Sets this Future to the result of its computation unless it has been cancelled.