Result

interface Result<T> : Future<T>

An extension of Future which allows additional configuration of the running task.

Author

Lucas Bubner, 2025

Parameters

T

the result type

See also

Properties

Link copied to clipboard
abstract val function: Callable<T>
Link copied to clipboard
abstract var ignoreStopAll: Boolean

Whether this task should ignore the stopAll command which is automated to run at the end of every OpMode via a Hook. Defaults to false.

Functions

Link copied to clipboard
open fun get(timeout: Measure<Time>): T

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

Inherited functions

Link copied to clipboard
abstract fun cancel(p0: Boolean): Boolean
Link copied to clipboard
abstract fun get(): T
abstract operator fun get(p0: Long, p1: TimeUnit): T
Link copied to clipboard
abstract fun isCancelled(): Boolean
Link copied to clipboard
abstract fun isDone(): Boolean