All returns an iterator that loops over all task key-value pairs. Range calls the provided function for each include in the map. The function receives the include's key and value as arguments. If the function returns an error, the iteration stops and the error is returned.
()
| 92 | // receives the include's key and value as arguments. If the function returns |
| 93 | // an error, the iteration stops and the error is returned. |
| 94 | func (includes *Includes) All() iter.Seq2[string, *Include] { |
| 95 | if includes == nil || includes.om == nil { |
| 96 | return func(yield func(string, *Include) bool) {} |
| 97 | } |
| 98 | return includes.om.AllFromFront() |
| 99 | } |
| 100 | |
| 101 | // Keys returns an iterator that loops over all task keys. |
| 102 | func (includes *Includes) Keys() iter.Seq[string] { |
nothing calls this directly
no outgoing calls
no test coverage detected