add runOnce to Client
This commit is contained in:
parent
9c5e080f90
commit
7d3e79091b
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package org.capnproto;
|
||||
|
||||
import java.nio.channels.AsynchronousByteChannel;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public class TwoPartyClient {
|
||||
|
||||
|
@ -30,4 +31,8 @@ public class TwoPartyClient {
|
|||
: RpcTwoPartyProtocol.Side.CLIENT);
|
||||
return rpcSystem.bootstrap(vatId.asReader());
|
||||
}
|
||||
|
||||
public synchronized CompletableFuture<?> runOnce() {
|
||||
return this.rpcSystem.runOnce();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue