Package com.openai.core
        Interface Sleeper
- 
                    
                    - All Implemented Interfaces:
- 
                            
                            java.lang.AutoCloseable
 
 public interface Sleeper implements AutoCloseable An interface for delaying execution for a specified amount of time. Useful for testing and cleaning up resources. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description abstract Unitsleep(Duration duration)Synchronously pauses execution for the given duration. abstract CompletableFuture<Void>sleepAsync(Duration duration)Asynchronously pauses execution for the given duration. abstract Unitclose()Overridden from AutoCloseable to not have a checked exception in its signature. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        sleepAsyncabstract CompletableFuture<Void> sleepAsync(Duration duration) Asynchronously pauses execution for the given duration. 
 - 
                                        closeabstract Unit close() Overridden from AutoCloseable to not have a checked exception in its signature. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-