then method

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

Implementation

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