fetchAndObserveEvents(forTask:eventQuery:errorHandler:)
Retrieves and observes events using a specific task, and match a query.
Declaration
func fetchAndObserveEvents(forTask task: OCKAnyTask, eventQuery: OCKEventQuery, errorHandler: ((Error) -> Void)? = nil)Parameters
- task:
The task the events belong to.
- eventQuery :
An event query that limits the results the store returns.
- errorHandler :
An error handler the function uses when it encounters an error.