Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426789
wait.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
428 B
Referenced Files
None
Subscribers
None
wait.js
View Options
/**
* @module wait
* @private
*/
/**
* Sugar around `window.setTimeout`.
*
* @example
* import wait from './wait';
*
* wait( 150 )
* .then( () => {
* // Continue processing...
* } );
*
* @param {number} delay The number of milliseconds to wait
* @return {Promise}
*/
export
default
function
wait
(
delay
)
{
return
new
Promise
(
(
resolve
)
=>
{
setTimeout
(
()
=>
{
resolve
();
},
delay
);
}
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 13:42 (1 d, 22 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
36/40/3825e03e0990a4f89d7f755671e6
Default Alt Text
wait.js (428 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment