public class InternalExecutorServiceFactory extends Object
| Constructor and Description |
|---|
InternalExecutorServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ExecutorService |
create(BiFunction<Runnable,String,Thread> threadSupplier,
String alias)
Creates an executor services that creates thread's based on the
thread supplier. |
static ExecutorService |
create(Function<Runnable,Thread> threadSupplier)
Creates an executor service that creates thread's based on the
thread supplier |
static ExecutorService |
sameThreadExecutorService() |
public static ExecutorService sameThreadExecutorService()
public static ExecutorService create(Function<Runnable,Thread> threadSupplier)
thread supplierthreadSupplier - The thread supplierthreadSupplier when pollingpublic static ExecutorService create(BiFunction<Runnable,String,Thread> threadSupplier, String alias)
thread supplier.
The first argument to the threadSupplier is the Runnable (the condition that will be evaluated).
The second argument is the default thread name generated by Awaitility.threadSupplier - The thread supplierthreadSupplier when pollingCopyright © 2010–2022. All rights reserved.