Class Awaitable

java.lang.Object
dev.openfeature.sdk.Awaitable

public class Awaitable extends Object
A class to help with synchronization by allowing the optional awaiting of the associated action.
  • Field Details

    • FINISHED

      public static final Awaitable FINISHED
      An already-completed Awaitable. Awaiting this will return immediately.
  • Constructor Details

    • Awaitable

      public Awaitable()
  • Method Details

    • await

      public void await()
      Lets the calling thread wait until some other thread calls wakeup(). If wakeup() has been called before the current thread invokes this method, it will return immediately.
    • wakeup

      public void wakeup()
      Wakes up all threads that have called await() and lets them proceed.