Pass returned value to fulfilled promise