sindresorhus / debounce

Delay function calls until a set time elapses after the last invocation
Other
798 stars 80 forks source link

can not call my func right now? #25

Closed zhiyongsun closed 5 years ago

zhiyongsun commented 5 years ago

can not call my func right now, at first time?

vendethiel commented 5 years ago

That’s correct, see test « should not execute prior to timeout ». Maybe you are looking for throttle instead of debounce?

zhiyongsun commented 5 years ago

@vendethiel yeah, you are right. thanks