Package | Description |
---|---|
gololang.concurrent.async |
Support for asynchronous programming constructs.
|
Modifier and Type | Class and Description |
---|---|
class |
AssignedFuture
Convenience implementation for pre-set futures.
|
Modifier and Type | Method and Description |
---|---|
Future |
Promise.future()
Creates a new future to observe the eventual resolution of this promise.
|
Future |
Future.onFail(Future.Observer observer)
Registers a callback for when the future fails.
|
Future |
AssignedFuture.onFail(Future.Observer observer) |
Future |
Future.onSet(Future.Observer observer)
Registers a callback for when the future is set.
|
Future |
AssignedFuture.onSet(Future.Observer observer) |