git ssb

1+

Matt McKegg / mutant



Tree: 01e9e1d516a0bcf09d486425ab7cba0f919f5a1a

Files: 01e9e1d516a0bcf09d486425ab7cba0f919f5a1a / idle-proxy.js

196 bytesRaw
1var Proxy = require('./proxy')
2var onceIdle = require('./once-idle')
3
4module.exports = function IdleProxy (fn) {
5 var obs = Proxy()
6 onceIdle(function () {
7 obs.set(fn())
8 })
9 return obs
10}
11

Built with git-ssb-web