export const sleepFor = (ms = 100) =>
Sleeps for the given amount of milliseconds with a more explicit name.
Uses a long-timer loop for sleeps longer than one second.
Target style API. Preferred for new code.
Helpers
Source: helpers/sleep.mjs
Target Style
Legacy Style