Class Promise<T>


  • public class Promise<T>
    extends java.lang.Object
    A simple Promise-like implementation that is not thread-safe. then() can't mutate the value.

    Be careful: catch only works for an explicit rejection, NOT automatically for exceptions thrown in ThenRunnables