Module stormpot

Interface StackCompletion.OnAwait

Enclosing class:
StackCompletion
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 StackCompletion.OnAwait
A callback that will be notified when threads block on a given completion.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    await(Timeout timeout)
    Implements the blocking await of a StackCompletion.
  • Method Details

    • await

      boolean await(Timeout timeout) throws InterruptedException
      Implements the blocking await of a StackCompletion.
      Parameters:
      timeout - A timeout to bound the waiting. May be null.
      Returns:
      true if the completion completed, otherwise false.
      Throws:
      InterruptedException - If the thread was interrupted while waiting.