mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
658 B
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