Executors.callable

Returns a {@link Callable} object that, when called, runs the given task and returns the given result. This can be useful when applying methods requiring a {@code Callable} to an otherwise resultless action. @param task the task to run @param result the result to return @param (T) the type of the result @return a callable object @throws NullPointerException if task null

  1. Callable!(void) callable(Runnable task)
    class Executors
    static
    Callable!(void)
    callable
    (
    Runnable task
    )
  2. Callable!(T) callable(Runnable task, T result)

Meta