Promise

constructor(executor: (resolve: (T) -> Unit, reject: (Throwable) -> Unit) -> Unit)(source)