Created
February 16, 2016 07:15
-
-
Save voltrevo/3c310cd6fbbed23cf78b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function(loop) { | |
return (function cycle(result) { | |
return result || loop().then(cycle); | |
})(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment