Package com.oracle.truffle.api
Interface TruffleSafepoint.Interruptible<T>
- All Known Subinterfaces:
TruffleSafepoint.CompiledInterruptible<T>
- 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.CompiledInterruptible
if you need partial evaluation for this functional interface.- Since:
- 21.1
- See Also:
-
Method Summary
-
Method Details
-
apply
Runs the interruptable method for a given object.- Throws:
InterruptedException
- Since:
- 21.1
-