Class DefaultSleeper

  • All Implemented Interfaces:
    com.openai.core.Sleeper , java.lang.AutoCloseable

    
    public final class DefaultSleeper
     implements Sleeper
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultSleeper()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit sleep(Duration duration) Synchronously pauses execution for the given duration.
      CompletableFuture<Void> sleepAsync(Duration duration) Asynchronously pauses execution for the given duration.
      Unit close() Overridden from AutoCloseable to not have a checked exception in its signature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait