Package | Description |
---|---|
javaslang.concurrent |
This package contains basic building blocks creating fast, asynchronous, non-blocking parallel code.
|
javaslang.control |
Modifier and Type | Method and Description |
---|---|
static Future<Void> |
Future.run(ExecutorService executorService,
Try.CheckedRunnable unit)
Starts an asynchronous computation, backed by the given
ExecutorService . |
static Future<Void> |
Future.run(Try.CheckedRunnable unit)
Runs an asynchronous computation, backed by the
Future.DEFAULT_EXECUTOR_SERVICE . |
Modifier and Type | Method and Description |
---|---|
default Try<T> |
Try.andThenTry(Try.CheckedRunnable runnable)
Runs the given runnable if this is a
Success , otherwise returns this Failure . |
static Try<Void> |
Try.run(Try.CheckedRunnable runnable)
Creates a Try of a CheckedRunnable.
|
Copyright © 2016. All Rights Reserved.