How to use the @most/core.propagateEventTask function in @most/core

To help you get started, we’ve selected a few @most/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mostjs / core / packages / virtual-stream / src / toStream.js View on Github external
const addEvent = (sink, scheduler) => (s, event) => {
  const task = scheduler.delay(event.time, propagateEventTask(event.value, sink))
  return { tasks: s.tasks.concat(task), time: Math.max(s.time, event.time) }
}