Sha256: f221abd48d19084acdbead8c8754872ea96564ad0fcc92832a2f83f180f5b928
Contents?: true
Size: 466 Bytes
Versions: 17
Compression:
Stored size: 466 Bytes
Contents
package org.jruby.jubilee.deploy; import java.util.concurrent.CountDownLatch; /** * Created with IntelliJ IDEA. * User: isaiah * Date: 12/3/12 * Time: 7:37 PM */ public class Starter { private CountDownLatch stopLatch = new CountDownLatch(1); public void block() { while(true) { try { stopLatch.await(); break; } catch (InterruptedException ignore) {} } } public void unblock() { stopLatch.countDown(); } }
Version data entries
17 entries across 17 versions & 1 rubygems