Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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) }
}