---
title: CheckForWork
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iodispatchsource/checkforwork
---

# CheckForWork

Checks for events to handle.

## Declaration

```occ
virtual kern_return_t CheckForWork(bool synchronous);
```

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## Discussion

Discussion Don’t override this method or call it from your own code. Existing dispatch source objects implement this method internally and use it to generate new events.
