Do you need create new actions from action and function?

node v10.24.1
version: master
endpointsharetweet
const { on, action: realar_action } = require('realar'); function action(init, callback) { const inst = realar_action(); if (callback) { on(init, (d) => callback(inst, d)); } return inst; } const a = action(); const b = action(a, (next) => { setTimeout(next, 1000) }); on(b, () => console.log('to console after 1000ms')); a();
Loading…

no comments

    sign in to comment