Introduce SyncAsyncExecutor

This commit is contained in:
Rene Pfeuffer
2019-12-11 10:10:56 +01:00
parent 8d0249b708
commit ce15b116bd
7 changed files with 111 additions and 35 deletions

View File

@@ -0,0 +1,10 @@
package sonia.scm.repository.spi;
import java.time.Instant;
public final class SyncAsyncExecutors {
public static SyncAsyncExecutor synchronousExecutor() {
return new SyncAsyncExecutor(Runnable::run, Instant.MAX);
}
}