Files: 306cee2cea33ec6d7ac5025d5033784134e56141 / idle-proxy.js
196 bytesRaw
1 | var Proxy = require('./proxy') |
2 | var onceIdle = require('./once-idle') |
3 | |
4 | module.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