How to use the @most/scheduler.delay function in @most/scheduler

To help you get started, we’ve selected a few @most/scheduler 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 / core / src / combinator / delay.ts View on Github external
event(_t: Time, x: A): void {
    this.tasks.push(scheduleDelay(this.dt, propagateEventTask(x, this.sink), this.scheduler))
  }
github mostjs / core / packages / core / src / combinator / limit.ts View on Github external
event(_t: Time, x: A): void {
    this.clearTimer()
    this.value = x
    this.timer = delay(this.dt, new DebounceTask(this, x), this.scheduler)
  }
github mostjs / core / packages / core / src / source / at.ts View on Github external
run(sink: Sink<a>, scheduler: Scheduler): Disposable {
    return delay(this.time, propagateTask(runAt, this.value, sink), scheduler)
  }
}</a>
github mostjs / core / packages / core / src / combinator / delay.ts View on Github external
end(): void {
    this.tasks.push(scheduleDelay(this.dt, propagateEndTask(this.sink), this.scheduler))
  }
}

@most/scheduler

Reactive programming with lean, functions-only, curried, tree-shakeable API

MIT
Latest version published 4 years ago

Package Health Score

61 / 100
Full package analysis