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.

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

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