Files: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3 / node_modules / looper / index.js
306 bytesRaw
1 | |
2 | var looper = module.exports = function (fun) { |
3 | (function next () { |
4 | var loop = true, returned = false, sync = false |
5 | do { |
6 | sync = true; loop = false |
7 | fun.call(this, function () { |
8 | if(sync) loop = true |
9 | else next() |
10 | }) |
11 | sync = false |
12 | } while(loop) |
13 | })() |
14 | } |
15 |
Built with git-ssb-web