Interface TruffleSafepoint.InterruptibleFunction<T,R>
- All Known Subinterfaces:
TruffleSafepoint.CompiledInterruptibleFunction<T,
R>
- Enclosing class:
TruffleSafepoint
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function interface that represent interruptable Java methods. Examples are
Lock::lockInterruptibly
or Semaphore::acquire
. If used directly implies a boundary
. Use
TruffleSafepoint.CompiledInterruptibleFunction
if you need partial evaluation for this functional
interface.- Since:
- 23.1
- See Also:
-
Method Summary
-
Method Details
-
apply
Runs the interruptible method for a given object.- Throws:
InterruptedException
- Since:
- 23.1
-