Class TestEnvironment.Promise<T>

java.lang.Object
org.reactivestreams.tck.TestEnvironment.Promise<T>
Enclosing class:
TestEnvironment

public static class TestEnvironment.Promise<T> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • completed

      public static <T> TestEnvironment.Promise<T> completed(TestEnvironment env, T value)
    • value

      public T value()
    • isCompleted

      public boolean isCompleted()
    • complete

      public void complete(T value)
      Allows using expectCompletion to await for completion of the value and complete it _then_
    • completeImmediatly

      public void completeImmediatly(T value)
      Same as complete. Keeping this method for binary compatibility.
    • expectCompletion

      public void expectCompletion(long timeoutMillis, String errorMsg) throws InterruptedException
      Throws:
      InterruptedException