Function

ODQueryScheduleWithRunLoop(_:_:_:)

Retrieves results from a query asynchronously by scheduling the query in a run loop.

Declaration

func ODQueryScheduleWithRunLoop(_ query: ODQueryRef!, _ runLoop: CFRunLoop!, _ runLoopMode: CFString!)

Parameters

inQuery

The query.

inRunLoop

The run loop.

inRunLoopMode

The mode of the run loop.

Discussion

This function spawns a new thread to execute the query in inRunLoop. When the query is complete, the query’s callback function is called with both inResults and inError set to NULL. To remove an incomplete query from its run loop, call ODQueryUnscheduleFromRunLoop(_:_:_:).

See Also