Package 

Class Promise


  • 
    public class Promise<T>
    
                        

    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