Download frontend-components/plotly/src/utils/utils.ts from CatPtain/OpenBB: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/spaces/CatPtain/OpenBB/resolve/main/frontend-components/plotly/src/utils/utils.ts
- Command line
-
hf download hf://spaces/CatPtain/OpenBB/frontend-components/plotly/src/utils/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/CatPtain/OpenBB/resolve/main/frontend-components/plotly/src/utils/utils.ts
301 Bytes
| // @ts-nocheck | |
| export const non_blocking = (func: Function, delay: number) => { | |
| let timeout: number; | |
| return function () { | |
| // @ts-ignore | |
| const context = this; | |
| const args = arguments; | |
| clearTimeout(timeout); | |
| timeout = setTimeout(() => func.apply(context, args), delay); | |
| }; | |
| }; | |