Promise<T> constructor

Promise<T>(
  1. void executor(
    1. dynamic resolve(
      1. T result
      ),
    2. Function reject
    )
)

Implementation

external factory Promise(void Function(Function(T result) resolve, Function reject) executor);