Added promise enabled while loop
Merge pull request #1 from miguelcobain/master

Added promise enabled while loop