Package | Description |
---|---|
io.vavr.concurrent |
This package contains basic building blocks creating fast, asynchronous, non-blocking parallel code.
|
io.vavr.control |
Modifier and Type | Method and Description |
---|---|
static Future<Void> |
Future.run(CheckedRunnable unit)
Runs an asynchronous computation, backed by the
Future.DEFAULT_EXECUTOR_SERVICE . |
static Future<Void> |
Future.run(ExecutorService executorService,
CheckedRunnable unit)
Starts an asynchronous computation, backed by the given
ExecutorService . |
Modifier and Type | Method and Description |
---|---|
default Try<T> |
Try.andFinallyTry(CheckedRunnable runnable)
Provides try's finally behavior no matter what the result of the operation is.
|
default Try<T> |
Try.andThenTry(CheckedRunnable runnable)
Runs the given runnable if this is a
Success , otherwise returns this Failure . |
static Try<Void> |
Try.run(CheckedRunnable runnable)
Creates a Try of a CheckedRunnable.
|
Copyright © 2017. All Rights Reserved.