Let resolve() deal with the return value of callbacks