Uses of Class
com.peterphi.std.threading.ParamInvokeable
-
Uses of ParamInvokeable in com.peterphi.std.threading
ModifierConstructorDescriptionSettableFuture
(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 toset
orcancel
; they run after the effects have taken place and after any interested parties waiting on the monitor have been notified