Search in sources :

Example 1 with Runner

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();
}
Also used : Runner(com.oath.cyclops.internal.react.stream.Runner) EmptyCollector(com.oath.cyclops.react.collectors.lazy.EmptyCollector) FastFuture(com.oath.cyclops.internal.react.async.future.FastFuture)

Aggregations

FastFuture (com.oath.cyclops.internal.react.async.future.FastFuture)1 Runner (com.oath.cyclops.internal.react.stream.Runner)1 EmptyCollector (com.oath.cyclops.react.collectors.lazy.EmptyCollector)1