Added promise enabled while loop

Added promise enabled while loop.
Discussed in tildeio/rsvp.js#248