Update task.md

This commit is contained in:
LeviDing 2020-07-07 20:18:26 +08:00 committed by GitHub
parent 445bda3980
commit 23fb044973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ importance: 5
Create a "throttling" decorator `throttle(f, ms)` -- that returns a wrapper.
When it's called multiple times, it passes the call to `f` at maximum once per `ms` milliseconds.
When it's called multiple times, it passes the call to `f` at maximum once per `ms` milliseconds.
The difference with debounce is that it's completely different decorator:
- `debounce` runs the function once after the "cooldown" period. Good for processing the final result.