Buckets:
| module.exports = defer; | |
| /** | |
| * Runs provided function on next iteration of the event loop | |
| * | |
| * @param {function} fn - function to run | |
| */ | |
| function defer(fn) | |
| { | |
| var nextTick = typeof setImmediate == 'function' | |
| ? setImmediate | |
| : ( | |
| typeof process == 'object' && typeof process.nextTick == 'function' | |
| ? process.nextTick | |
| : null | |
| ); | |
| if (nextTick) | |
| { | |
| nextTick(fn); | |
| } | |
| else | |
| { | |
| setTimeout(fn, 0); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 441 Bytes
- Xet hash:
- 09be3203626340d361b304dc8494cb8e6fd1be5fd19c9fc55e4db7ec3aa3319a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.