updating docs on how resolve works in with-promise