Example usage for org.eclipse.jgit.internal.ketch Proposal await

List of usage examples for org.eclipse.jgit.internal.ketch Proposal await

Introduction

In this page you can find the example usage for org.eclipse.jgit.internal.ketch Proposal await.

Prototype

public boolean await(long wait, TimeUnit unit) throws InterruptedException 

Source Link

Document

Wait for the proposal to be attempted and #isDone() to be true.

Usage

From source file:org.uberfire.java.nio.fs.jgit.util.commands.RefTreeUpdateCommand.java

License:Apache License

private void waitForPropose(final Proposal proposal) throws InterruptedException {
    while (!proposal.await(250, MILLISECONDS)) {
        System.out.println("waiting propose...");
    }/* w w  w  . j a v  a2 s  .c o  m*/
}