use of com.oath.cyclops.internal.react.stream.Runner in project cyclops by aol.
the class LazyStream method runThread.
default void runThread(final Runnable r) {
final Function<FastFuture, U> safeJoin = (final FastFuture cf) -> (U) BlockingStreamHelper.getSafe(cf, getErrorHandler());
new Thread(() -> new Runner(r).run(getLastActive(), new EmptyCollector(getMaxActive(), safeJoin))).start();
}
Aggregations