Skip to content

Scheduled

Bindings for @solid-primitives/scheduled.

Schedule

type Schedule<'T> = interface
member exec: 'T -> unit

Stands in for calling schedule(_) in JavaScript.

member clear: unit -> unit

debounce

let debounce(
    callback: 'T -> unit,
    timespan: int
    ): Schedule<'T>

throttle

let throttle(
    callback: 'T -> unit,
    timespan: int
    ): Schedule<'T>

scheduleIdle

let scheduleIdle(
    callback: 'T -> unit,
    timespan: int
    ): Schedule<'T>

DebounceOrThrottle

type DebounceOrThrottle<'T> = ('T -> unit) * int -> Schedule<'T>

leading

let leading(
    debOrThrot: DebounceOrThrottle<'T>,
    callback: 'T -> unit,
    timespan: unit
    ): Schedule<'T>

leadingAndTrailing

let leadingAndTrailing(
    debOrThrot: DebounceOrThrottle<'T>,
    callback: 'T -> unit,
    timespan: int
    ): Schedule<'T>

createScheduled

Not bound.

Edit this page