Package | Description |
---|---|
javaslang | |
javaslang.concurrent |
This package contains basic building blocks creating fast, asynchronous, non-blocking parallel code.
|
javaslang.control |
Modifier and Type | Method and Description |
---|---|
default T |
Value.getOrElseTry(Try.CheckedSupplier<? extends T> supplier)
Returns the underlying value if present, otherwise returns the result of
Try.of(supplier).get() . |
Modifier and Type | Method and Description |
---|---|
static <T> Future<T> |
Future.of(ExecutorService executorService,
Try.CheckedSupplier<? extends T> computation)
Starts an asynchronous computation, backed by the given
ExecutorService . |
static <T> Future<T> |
Future.of(Try.CheckedSupplier<? extends T> computation)
Starts an asynchronous computation, backed by the
Future.DEFAULT_EXECUTOR_SERVICE . |
Modifier and Type | Method and Description |
---|---|
static <T> Try<T> |
Try.of(Try.CheckedSupplier<? extends T> supplier)
Creates a Try of a CheckedSupplier.
|
Copyright © 2016. All Rights Reserved.