Examples of sleep()


Examples of org.jruby.RubyThread.sleep()

            // If all streams are nil, just sleep the specified time (JRUBY-4699)
            if (args[0].isNil() && args[1].isNil() && args[2].isNil()) {
                if (timeout > 0) {
                    RubyThread thread = context.getThread();
                    long now = System.currentTimeMillis();
                    thread.sleep(timeout);
                    // Guard against spurious wakeup
                    while (System.currentTimeMillis() < now + timeout) {
                        thread.sleep(1);
                    }
View Full Code Here

Examples of org.netbeans.jemmy.Timeout.sleep()

  Point pnt = new Point(0, 0);
  drag(oper, pnt);
  Timeout sleepTime = oper.getTimeouts().create("Waiter.TimeDelta");
  while(((JScrollBarOperator)oper).getValue() >
        ((JScrollBarOperator)oper).getMinimum()) {
      sleepTime.sleep();
  }
  drop(oper, pnt);
    }

    public void scrollToMaximum(ComponentOperator oper, int orientation) {
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.Sleep.sleep()

    if (isOccupied(head)) {
      player.sendMessage(OCCUPIED_MESSAGE);
      return;
    }

    sleep.sleep(head);
  }

  @Override
  public void initialize() {
    this.getDrops().clear();
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.