Seitu
Core

Throttled

Throttles updates from a source to at most once per wait ms (leading, then trailing).

createThrottled()

Throttles updates from a source to at most once per wait ms (leading, then trailing). Unsubscribed get() reads through; subscribed get() returns the last emitted value.

Examples

import { ,  } from 'seitu'

const  = ('')
const  = (, 300)
.( => .('throttled:', ))

Edit on GitHub

Last updated on

On this page