Package | Description |
---|---|
com.peterphi.std.threading |
Constructor | Description |
---|---|
SettableFuture(ParamInvokeable<SettableFuture<T>> onSet,
ParamInvokeable<SettableFuture<T>> onCancel) |
Create a SettableFuture which will potentially execute tasks upon set and upon cancel; the handlers will hold the exclusive
lock on the monitor for the duration of their execution
The handlers, (as they are ParamInvokeables) run synchronously with the call to set or cancel ;
they run after the effects have taken place and after any interested parties waiting on the monitor have been notified |
Copyright © 2018. All rights reserved.