---
title: DataServiced
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iodataqueuedispatchsource/dataserviced
---

# DataServiced

Responds to the removal of data from the queue.

## Declaration

```occ
virtual void DataServiced(OSAction *action);
```

## Parameters

- `action`: The action object being executed.

## Discussion

Discussion Use this method as a prototype for declaring your own custom data-queue handler. When declaring your method, use the TYPE macro to indicate that your method has the same parameters and return value as this method. Use the implementation of your method to add more data to the queue or perform other relevant tasks.

## See Also

### Adding Work to the Queue

- [SetDataServicedHandler](driverkit/iodataqueuedispatchsource/setdataservicedhandler.md)
- [Enqueue](driverkit/iodataqueuedispatchsource/enqueue.md)
- [EnqueueWithCoalesce](driverkit/iodataqueuedispatchsource/enqueuewithcoalesce.md)
- [SendDataAvailable](driverkit/iodataqueuedispatchsource/senddataavailable.md)
- [IODataQueueClientEnqueueEntryBlock](driverkit/iodataqueueclientenqueueentryblock.md)
