Seitu
Core

Throttled Fn

Throttled callable that is also a subscribable.

createThrottledFn()

Throttled callable that is also a subscribable. First call fires immediately; later calls within wait batch into one trailing call.

Examples

import {  } from 'seitu'

const  = ((: string) => .(), 300)
.( => .('result:', ))
('hello') // fires immediately
('world') // throttled — fires after 300ms
.()
.()

Edit on GitHub

Last updated on

On this page