- 🔭 I’m currently working at Altente
- 🌱 I’m currently reading The Ideal Executive by Ichak Kalderon Adizes
- 📫 How to reach me: Telegram
- 🔎 I'm interested in making HTML5 Games and web3
![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
Focusing
-
Altente
- Beograd, Serbia
Pinned Loading
-
Cancellable delayed function
Cancellable delayed function 1const cancellable = ({ callback = () => {}, cancel = () => {}, flag = { execute: true } }) => (
2ms = 0,
3...args
4) => {
5delay(ms).then(() => flag.execute && callback.apply(null, args));
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.