Skip to main content
Partas

Scheduled

Schedule

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

Mimics schedule(_) at runtime.

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

warning

unbound

Last updated: 7/11/25, 1:35 AM

PartasBuilt using the Partas.SolidStart SolidBase template
Community
githubdiscord