Return continuation when setting result to promise