git ssb

2+

Dominic / pull-stream



Tree: 9e8b7714e605551f6eb22a0160194142cb7c3e47

Files: 9e8b7714e605551f6eb22a0160194142cb7c3e47 / sources / infinite.js

201 bytesRaw
1'use strict'
2module.exports = function infinite (generate) {
3 generate = generate || Math.random
4 return function (end, cb) {
5 if(end) return cb && cb(end)
6 return cb(null, generate())
7 }
8}
9
10
11

Built with git-ssb-web