All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.transferwise.tasks.utils.WaitUtils Maven / Gradle / Ivy

The newest version!
package com.transferwise.tasks.utils;

import java.time.Duration;

public final class WaitUtils {

  private WaitUtils() {
    throw new AssertionError();
  }

  public static void sleepQuietly(Duration timeout) {
    try {
      Thread.sleep(timeout.toMillis());
    } catch (InterruptedException ignored) {
      //ignored
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy