convert RejectErrorReporter, AsyncPromise to kotlin