Jump to content
Toggle sidebar
OniGalore
Search
Request account
Personal tools
Create account
Log in
Navigation
Main Page
Category tree
Community portal
Current events
Recent changes
Random page
Help
Tools
User contributions
Logs
View user groups
Special pages
Printable version
User:Iritscen/vector.js: Difference between revisions
User page
Discussion
English
Read
View source
View history
More
Read
View source
View history
← Older edit
Newer edit →
User:Iritscen/vector.js
(view source)
Revision as of 05:07, 15 February 2018
75 bytes removed
,
15 February 2018
no edit summary
Revision as of 04:59, 15 February 2018
(
view source
)
Iritscen
(
talk
|
contribs
)
No edit summary
← Older edit
Revision as of 05:07, 15 February 2018
(
view source
)
Iritscen
(
talk
|
contribs
)
No edit summary
Newer edit →
Line 16:
Line 16:
});*/
});*/
function sleep(ms) {
var a = 1 + 3;
return new Promise
(
resolve
function
(foo
)
{
setTimeout(
resolve, ms)});
var b;
}
console.log
(
"Engaging hacky sleep
function
..."
)
;
setTimeout(function()
async
function
demo
() {
{
console.log('Taking
a
break...')
;
b =
a
+ 4
;
await sleep
(
2000
);
},
(
2 * 1000)
);
console.log(
'Two second later');
console.log(
"Done."
);
}
demo(
);
Iritscen
Bureaucrats
,
Interface administrators
,
Suppressors
,
Administrators
19,588
edits