evt
simple pub/sub event bus.
Load with: use evt
Quick example
use evt
result = evtsu("value", "value", \(x) x)
prn(result)
Functions
Functions
evtne()
Creates a new instance.
evtid()
Performs the operation.
evtsu(e, ty, cb)
Performs the operation. Takes e, ty, cb.
evton(e, ty, cb)
Performs the operation. Takes e, ty, cb.
evtsy(e, ty, msg, b)
Performs the operation. Takes e, ty, msg, b.
evtha(e, ty)
Performs the operation. Takes e, ty.
evtdr(e, ty, id)
Performs the operation. Takes e, ty, id.
evtst(lp)
Sets a value or starts a process. Takes lp.
evtsp(lp, idle)
Performs the operation. Takes lp, idle.
evtsp1(lp, ms, idle)
Performs the operation. Takes lp, ms, idle.
evtlo()
Performs the operation.
evtti(lp)
Performs the operation. Takes lp.
evtru(lp, idle)
Runs. Takes lp, idle.
evtru1(lp, ms, idle)
Performs the operation. Takes lp, ms, idle.
Advanced Event Bus with Channels
evtbu()
Performs the operation.
evtbu1(bus, ty, h)
Performs the operation. Takes bus, ty, h.
evtbu2(bus, ty, h)
Performs the operation. Takes bus, ty, h.
evtbu3(bus, ty, pl)
Performs the operation. Takes bus, ty, pl.
evtbu4(bus)
Performs the operation. Takes bus.
evtbu5(bus)
Performs the operation. Takes bus.
Event Emitter (Node.js style)
evtem()
Performs the operation.
evton1(emit, ev, on_handlers)
Performs the operation. Takes emit, ev, on_handlers.
evton2(emit, ev, once_handlers)
Performs the operation. Takes emit, ev, once_handlers.
evtof(emit, ev, h)
Performs the operation. Takes emit, ev, h.
evtem1(emit, ev, d)
Performs the operation. Takes emit, ev, d.
evtco(emit, ev)
Connects. Takes emit, ev.
Stream Processing
evtst1(source_fn)
Performs the operation. Takes source_fn.
evtpi(s, cb)
Performs the operation. Takes s, cb.
evtst2(s, sink)
Performs the operation. Takes s, sink.
evtst3(s)
Performs the operation. Takes s.
evtst4(s)
Performs the operation. Takes s.
Event Sourcing
evtsr(id)
Performs the operation. Takes id.
evtsr1(src, ty, pl)
Performs the operation. Takes src, ty, pl.
evtsr2(src, hdl)
Performs the operation. Takes src, hdl.
evtsr3(src)
Performs the operation. Takes src.
Debounce/Throttle
evtdb(cb, ms)
Performs the operation. Takes cb, ms.
evttt(cb, ms)
Performs the operation. Takes cb, ms.
Notes
- Event system - typed events, dispatch, listeners.