com.transferwise.tasks.utils.WaitUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tw-tasks-core Show documentation
Show all versions of tw-tasks-core Show documentation
Transferwise Tasks Executor - Fire and forget until Alert.
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
}
}
}