4.0.0 • Published 4 days ago

@288-toolkit/timeout v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 days ago

Timeout

A collection of function for timeouts.

sleep

Resolves a promise after a given time.

throttle

Return a throttled function that will run the callback at most once until the timer expires.

A re-export of https://github.com/angus-c/just/tree/master/packages/function-throttle

debounce

Return a debounced function that will run the callback ms after the last invocation.

A re-export of https://github.com/angus-c/just/tree/master/packages/function-debounce

interval

Creates an interval that calls a function at a fixed interval using requestAnimationFrame. Returns a function that cancels the interval.

throttleRaf

Return a throttled function that is called at most once per animation frame.

3.0.1

4 days ago

4.0.0

4 days ago

3.0.0

4 days ago

1.0.2

9 days ago

1.0.1

10 days ago

1.0.0

11 days ago