Finds all events that match a given predicate and calls a given callback for each event found.
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- watchOS 2.0+
The block callback to call for each event. The callback must match the signature defined by
Only events that have been committed are included in enumeration. Events saved using
save(_:span:commit:) with the
commit parameter set to
false must call
commit() beforehand to be included.
This method is synchronous. For asynchronous behavior, run the method on another thread with