Ask a question to get started
Enter to send•Shift+Enter new line
An interface for delaying execution for a specified amount of time.
public interface Sleeper implements AutoCloseable
An interface for delaying execution for a specified amount of time. Useful for testing and cleaning up resources.
Synchronously pauses execution for the given [duration]..
Asynchronously pauses execution for the given [duration]..
Overridden from [AutoCloseable] to not have a checked exception in its signature..