001    // Copyright 2010 Waterken Inc. under the terms of the MIT X license
002    // found at http://www.opensource.org/licenses/mit-license.html
003    package org.waterken.pipelined;
004    
005    import static org.ref_send.promise.Eventual.ref;
006    
007    import org.ref_send.promise.Promise;
008    
009    /**
010     * Promise pipelining test.
011     */
012    public final class Pipelined {
013        private Pipelined() {}
014        
015        static public Promise<?>
016        make(final PlugNPlay player_) {
017            return ref(player_.plug(player_.play().play()));
018        }
019    }