Package reactor.event.dispatch

Examples of reactor.event.dispatch.ThreadPoolExecutorDispatcher


@SuppressWarnings({"unchecked", "rawtypes"})
public class AwaitTests extends AbstractReactorTest {

  @Test
  public void testAwaitDoesntBlockUnnecessarily() throws InterruptedException {
    ThreadPoolExecutorDispatcher dispatcher = new ThreadPoolExecutorDispatcher(4, 64);

    Reactor innerReactor = Reactors.reactor().env(env).dispatcher(dispatcher).get();

    for (int i = 0; i < 10000; i++) {
      final Promise<String> deferred = Promises.<String>defer(env);
View Full Code Here

TOP

Related Classes of reactor.event.dispatch.ThreadPoolExecutorDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.