@FunctionalInterface public static interface TruffleSafepoint.Interruptible<T>
Lock::lockInterruptibly or Semaphore::acquire. If used directly implies a boundary. Use
TruffleSafepoint.CompiledInterruptible if you need partial evaluation for this functional interface.TruffleSafepoint.setBlockedThreadInterruptible(Node, Interruptible, Object)| Modifier and Type | Method and Description |
|---|---|
void |
apply(T arg)
Runs the interruptable method for a given object.
|
void apply(T arg) throws InterruptedException
InterruptedException