public final class Operations extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Operations.CompletedFuture<T>
This class represents a
Future in the completed state with a fixed result. |
| 构造器和说明 |
|---|
Operations() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Cancellable |
cancellable(Future<?> future)
Creates a
Cancellable operation handle for an ongoing process
or operation represented by a Future. |
static Cancellable |
nonCancellable()
Creates a
Cancellable operation handle for an ongoing process
or operation that cannot be cancelled. |
public static Cancellable nonCancellable()
Cancellable operation handle for an ongoing process
or operation that cannot be cancelled. Attempts to cancel the operation
with this handle will have no effect.public static Cancellable cancellable(Future<?> future)
Cancellable operation handle for an ongoing process
or operation represented by a Future.future - the result futureCopyright © 2023. All rights reserved.