patronum
patronum copied to clipboard
Clock-less `delay`
Add delay variation without clock
Should return a unit that triggers target after timeout
sample({
clock: buttonPressed,
source: $element,
target: [scrollIntoViewFx, delay({ timeout: 100, target: pulseFx })]
})
Same for debounce & throttle
What's the case?
See code snippet above - it's more convenient to describe several actions with different delays (such as animations) as a single sample+multiple targets, rather than writing several separate operators