mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 21:23:54 +01:00
31 lines
633 B
Markdown
31 lines
633 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.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
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
|
|
|