Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix thunkify to work when called multiple times
The thunkify definitions as published will only work the first time they are called, after which the thunkory will continue appending to a shared args array, calling `fn` with more and more arguments. To prevent this, the thunkory should clone a new copy of args every time it is called, and push the latest cb to that args array.
- Loading branch information