Interface ServerRuntime.CancellableOperation<T>
- Type Parameters:
T- independently owned, resource-free result type
- Enclosing class:
ServerRuntime
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Operation executed on this runtime's bounded worker lane.
-
Method Summary
Modifier and TypeMethodDescriptioncall(CancellationSignal cancellation) Computes a result, releasing every acquired resource before returning.
-
Method Details
-
call
Computes a result, releasing every acquired resource before returning.- Parameters:
cancellation- cooperative cancellation and interruption signal- Returns:
- resource-free result; a late result may be discarded
- Throws:
Exception- if execution fails
-