Package groovyx.gpars.actor

Examples of groovyx.gpars.actor.DefaultActor.start()


     * @return A newly created instance of the DefaultActor class
     */
    public final DefaultActor actor(@DelegatesTo(DefaultActor.class) final Runnable handler) {
        final DefaultActor actor = new DefaultActor(handler);
        actor.setParallelGroup(this);
        actor.start();
        return actor;
    }

    /**
     * Creates a new instance of BlockingActor, using the passed-in closure as the body of the actor's act() method.
View Full Code Here


     */
    public final DefaultActor fairActor(@DelegatesTo(DefaultActor.class) final Runnable handler) {
        final DefaultActor actor = new DefaultActor(handler);
        actor.setParallelGroup(this);
        actor.makeFair();
        actor.start();
        return actor;
    }

    /**
     * Creates a reactor around the supplied code.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.