Package com.tccc.kos.commons.util.concurrent.future
package com.tccc.kos.commons.util.concurrent.future
-
ClassDescriptionA future that immediately fails when started.Types of
FutureWork
callback events.A functional interface for associating runnable code with a future, whether the primary code of the future or callbacks based on future events.PossibleFutureWork
states, which are: SUCCESS: the operation successfully ran to completion FAIL: the operation ran to completion but failed CANCEL: the operation was cancelled by the user ABORT: the operation was aborted by the softwareThis is the kOS equivalent of Java'sFutureTask
.Allows a collection of individual futures to be run in parallel, where the overall state ofParallelFuture
reflects the result of the child futures.Allows a list of individual futures to be run in sequence, where the overall state ofSequencedFuture
reflects the result of the sequence.