mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
30 lines
658 B
Markdown
30 lines
658 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [asleep](./bitburner.ns.asleep.md)
|
|
|
|
## 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.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
asleep(millis: number): Promise<true>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| millis | number | Number of milliseconds to sleep. |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Promise<true>
|
|
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|