This commit is contained in:
Raven Scott
2026-05-20 21:02:45 -04:00
parent 1f3f4b24a2
commit 14d0980b4f
734 changed files with 682 additions and 746 deletions
@@ -0,0 +1,12 @@
require('bare-process/global')
const { HyperP2PPeerScheduler } = require('../index.js')
async function main () {
const s = new HyperP2PPeerScheduler()
s.schedule('every:200ms', 'heartbeat')
s.on('tick', (e) => console.log('tick', e.jobId))
s.tick(Date.now() + 250)
await s.close()
console.log('done')
}
main().catch(console.error)