2022-10-21 17:16:00 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2022-11-24 14:19:51 +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-24 14:19:51 +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