Promise constructor

Promise(
  1. dynamic executor(
    1. dynamic resolve(
      1. dynamic value
      ),
    2. dynamic reject(
      1. dynamic error
      )
    )
)

Implementation

external factory Promise(
    Function(dynamic Function(dynamic value) resolve,
            dynamic Function(dynamic error) reject)
        executor);