REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 793 B
Close
/home/byroehnu/easepay.easetack.com/node_modules/raf-schd/src/index.js
Text
Base64
// @flow type WrapperFn<T> = { [[call]]: (...T) => void, cancel: () => void, }; const rafSchd = <T: $ReadOnlyArray<any>>( fn: (...T) => void, ): WrapperFn<T> => { let lastArgs: T = ([]: any); let frameId: ?AnimationFrameID = null; const wrapperFn: WrapperFn<T> = (...args: T) => { // Always capture the latest value lastArgs = args; // There is already a frame queued if (frameId) { return; } // Schedule a new frame frameId = requestAnimationFrame(() => { frameId = null; fn(...lastArgs); }); }; // Adding cancel property to result function wrapperFn.cancel = () => { if (!frameId) { return; } cancelAnimationFrame(frameId); frameId = null; }; return wrapperFn; }; export default rafSchd;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
793 B
lrw-r--r--
2026-02-28 00:26:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).