T- result type
@Deprecated @FunctionalInterface public interface Task<T>
Task is a function that takes an instance of
Task.Complete and returns nothing.
Complete is a handler that needs to be actively called to complete the
Callable<T> worker = ...; Future<T> result = Future.run(complete -> complete.with(Try.of(worker::call)));
|Modifier and Type||Interface and Description|
Completes a task.
Copyright © 2019. All Rights Reserved.