---
title: init
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iodataqueuedispatchsource/3438187-init
---

# init

Handles the basic initialization of the dispatch source.

## Declaration

```occ
virtual bool init(void);
```

## Return Value

Return Value true if initialization was successful, or false if an error occurred.

## Discussion

Discussion Don't call this method directly. Call Create when you want to create a new data-queue dispatch source.

## See Also

### Configuring the Dispatch Source

- [Create](kernel/iodataqueuedispatchsource/3438177-create.md)
- [free](kernel/iodataqueuedispatchsource/3438186-free.md)
