Sets the event callout to be called when the queue transitions to non-empty.
- macOS 10.0+
- Mac Catalyst 13.0+Beta
if non-NULL is a callback to be called when data is inserted to the queue
The callback target passed to the callback
The callback refcon passed to the callback.
Returns an IOReturn code.
In order for this to work correctly, you must call createAsyncPort and createAsyncEventSource.