bitburner-src/markdown/bitburner.ns.asleep.md
2023-04-28 14:45:55 -04:00

633 B

Home > bitburner > NS > asleep

NS.asleep() method

Suspends the script for n milliseconds. Doesn't block with concurrent calls.

Signature:

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

Parameters

Parameter Type Description
millis number Number of milliseconds to sleep.

Returns:

Promise<true>

A promise that resolves to true when the sleep is completed.

Remarks

RAM cost: 0 GB