public abstract class Utils
extends java.lang.Object
public static <T> T await(play.libs.F.Promise<T> promise, long timeout) throws org.talares.api.exceptions.TalaresException
F.Promise
of type 'T'.
Uses the specified long as timeout. Wraps any exception thrown by the F.Promise
in a
TalaresException
.T
- the type of object the F.Promise
holdspromise
- the F.Promise
to awaittimeout
- the timeout used for waitingF.Promise
org.talares.api.exceptions.TalaresException