bitburner-src/markdown/bitburner.ns.asleep.md
2022-05-24 08:12:49 -04:00

658 B

Home > bitburner > NS > asleep

NS.asleep() method

Suspends the script for n milliseconds. Doesn't block with concurrent calls. You should prefer 'sleep' over 'asleep' except when doing very complex UI work.

Signature:

asleep(millis: number): Promise<true>;

Parameters

Parameter Type Description
millis number Number of milliseconds to sleep.

Returns:

Promise<true>

Remarks

RAM cost: 0 GB