2022-10-21 17:16:00 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2022-11-20 18:07:22 +01:00
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [sleeve ](./bitburner.sleeve.md ) > [getTask ](./bitburner.sleeve.gettask.md )
2022-10-21 17:16:00 +02:00
2022-11-20 18:07:22 +01:00
## sleeve.getTask() method
2022-10-21 17:16:00 +02:00
Get task of a sleeve.
< b > Signature:< / b >
```typescript
2022-11-20 18:07:22 +01:00
getTask(sleeveNumber: number): SleeveTask | null;
2022-10-21 17:16:00 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| sleeveNumber | number | Index of the sleeve to retrieve task from. |
< b > Returns:< / b >
2022-11-20 18:07:22 +01:00
[SleeveTask ](./bitburner.sleevetask.md ) \| null
2022-10-21 17:16:00 +02:00
2022-11-20 18:07:22 +01:00
Object containing information for the current task that the sleeve is performing.
2022-10-21 17:16:00 +02:00
## Remarks
RAM cost: 4 GB
2022-11-20 18:07:22 +01: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 17:16:00 +02:00