@Override public IPromise timeoutIn(long millis) { if (realCallback instanceof IPromise == false) throw new RuntimeException( "currently supported for futures only" ); ((IPromise)realCallback).timeoutIn(millis); return this; }
@Override public IPromise timeoutIn(long millis) { if (realCallback instanceof IPromise == false) throw new RuntimeException( "currently supported for futures only" ); ((IPromise)realCallback).timeoutIn(millis); return this; }
reply.run(); } else { Actors.all((List) futures).timeoutIn(REQUEST_RESULTING_FUTURE_TIMEOUT).then( () -> { reply.run(); }).onTimeout( () -> reply.run() );
reply.run(); } else { Actors.all((List) futures).timeoutIn(REQUEST_RESULTING_FUTURE_TIMEOUT).then( () -> { reply.run(); }).onTimeout( () -> reply.run() );