2021-11-04 01:19:52 +01:00
<!-- 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
2022-05-24 14:12:49 +02:00
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.
2021-11-04 01:19:52 +01:00
< b > Signature:< / b >
```typescript
2022-04-13 07:35:35 +02:00
asleep(millis: number): Promise< true > ;
2021-11-04 01:19:52 +01:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| millis | number | Number of milliseconds to sleep. |
< b > Returns:< / b >
2022-04-13 07:35:35 +02:00
Promise< true>
2021-11-04 01:19:52 +01:00
## Remarks
RAM cost: 0 GB