---
title: CheckForWork
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iotimerdispatchsource/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. The dispatch source uses this method internally to check for events.

## See Also

### Declaring Actions

- [TimerOccurred](driverkit/iotimerdispatchsource/timeroccurred.md)
