setTimeout

2 moment(s) that assert this concept — showing 1–2 of 2

single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] JSConf[2] JSConf
showing 2 of 2 moments
JSConf · youtube · en-US
1The setTimeout method, when invoked, waits ms milliseconds and invokes a callback, but this specification runs on the main thread and blocks other operations.
“The setTimeout method, when invoked, must run the following steps: Wait ms milliseconds, invoke callback. Done.”
spoken · 342s · 2018-02-09
JSConf · youtube · en-US
2When using setTimeout, two callbacks are queued separately in the task queue after a one-second delay and executed sequentially by the event loop.
“it adds each one as a separate to-do item in the task queue”
spoken · 518s · 2018-02-09