Values returns an iterator that loops over all task values in the order specified by the sorter.
(sorter sort.Sorter)
| 109 | // Values returns an iterator that loops over all task values in the order |
| 110 | // specified by the sorter. |
| 111 | func (t *Tasks) Values(sorter sort.Sorter) iter.Seq[*Task] { |
| 112 | return func(yield func(*Task) bool) { |
| 113 | for _, v := range t.All(sorter) { |
| 114 | if !yield(v) { |
| 115 | return |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func (t1 *Tasks) Merge(t2 *Tasks, include *Include, includedTaskfileVars *Vars) error { |
| 122 | defer t2.mutex.RUnlock() |