/* * helper function to delay after a promise * @param ms * @returns {function(*): Promise<unknown>} */ const sleeper = (ms) => { return function(x) { return new Promise(resolve => setTimeout(() => resolve(x), ms)); }; } export default sleeper;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Flag | Folder | 0755 |
|
|
AddUrlRef.js | File | 310 B | 0644 |
|
Error.js | File | 2.5 KB | 0644 |
|
ErrorBoundary.js | File | 1.23 KB | 0644 |
|
Hyperlink.js | File | 924 B | 0644 |
|
Icon.js | File | 36.2 KB | 0644 |
|
api.js | File | 5.31 KB | 0644 |
|
autoCompleteTheme.js | File | 1.15 KB | 0644 |
|
formatting.js | File | 1.79 KB | 0644 |
|
getAnchor.js | File | 1.37 KB | 0644 |
|
hoverTooltip.js | File | 2.84 KB | 0644 |
|
lib.js | File | 383 B | 0644 |
|
sleeper.js | File | 264 B | 0644 |
|