then method

Object then(
  1. Function onFulfilled,
  2. Function onRejected
)

Implementation

external Object then(Function onFulfilled, Function onRejected);