2022-10-21 11:16:00 -04:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2022-11-24 08:19:51 -05:00
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [Sleeve ](./bitburner.sleeve.md ) > [getTask ](./bitburner.sleeve.gettask.md )
2022-10-21 11:16:00 -04:00
2022-11-24 08:19:51 -05:00
## Sleeve.getTask() method
2022-10-21 11:16:00 -04:00
Get task of a sleeve.
2023-02-11 13:18:50 -05:00
**Signature:**
2022-10-21 11:16:00 -04:00
```typescript
2022-11-20 12:07:22 -05:00
getTask(sleeveNumber: number): SleeveTask | null;
2022-10-21 11:16:00 -04:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| sleeveNumber | number | Index of the sleeve to retrieve task from. |
2023-02-11 13:18:50 -05:00
**Returns:**
2022-10-21 11:16:00 -04:00
2022-11-20 12:07:22 -05:00
[SleeveTask ](./bitburner.sleevetask.md ) \| null
2022-10-21 11:16:00 -04:00
2022-11-20 12:07:22 -05:00
Object containing information for the current task that the sleeve is performing.
2022-10-21 11:16:00 -04:00
## Remarks
RAM cost: 4 GB
2022-11-20 12:07:22 -05:00
Return the current task that the sleeve is performing, or null if the sleeve is idle. All tasks have a "type" property, and other available properties depend on the type of task.
2022-10-21 11:16:00 -04:00