Class Promise<T>

java.lang.Object
com.batch.batch_flutter.Promise<T>

public class Promise<T> extends 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