passes the promise handle into the function at arg 1