Contents

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

  • query:

    The query.

  • runLoop:

    The run loop.

  • runLoopMode:

    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

Related Documentation

Working with Queries