Promise

constructor(executor: (resolve: PromiseResolve<T>, reject: PromiseReject) -> Unit)(source)
constructor(executor: (resolve: PromiseResolve<T>) -> Unit)(source)