then method

Promise<T> then(
  1. JSFunction onFulfilled, [
  2. JSFunction? onRejected
])

Implementation

external Promise<T> then(JSFunction onFulfilled, [JSFunction? onRejected]);