git ssb

16+

Dominic / patchbay



Tree: 9aebdc3e60b5a764cc5feba4614b5ca393d2b834

Files: 9aebdc3e60b5a764cc5feba4614b5ca393d2b834 / sbot / async / run.js

315 bytesRaw
1const nest = require('depnest')
2const { onceTrue } = require('mutant')
3
4exports.gives = nest('sbot.async.run')
5
6exports.needs = nest({
7 'sbot.obs.connection': 'first'
8})
9
10exports.create = (api) => {
11 return nest({
12 'sbot.async.run': function run (fn) {
13 onceTrue(api.sbot.obs.connection, fn)
14 }
15 })
16}
17

Built with git-ssb-web