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.

@FunctionalInterface public static interface TruffleSafepoint.Interruptible<T>
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

    Modifier and Type
    Method
    Description
    void
    apply(T arg)
    Runs the interruptable method for a given object.