// MatchTaskImmediately attempts a non-blocking sync match.
func (d *matcherData) MatchTaskImmediately(task *internalTask) syncMatchOutcome {
matcher_data.go
d.lock.Lock()
defer d.lock.Unlock()
if !d.isBacklogNegligible() {
// To ensure better dispatch ordering, we block sync match when a significant backlog is present.
// Note that this check does not make a noticeable difference for history tasks, as they do not wait for a