status-go/vendor/github.com/anacrolix/missinggo/v2/iter/chain.go

12 lines
141 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package iter
func Chain(fs ...Func) Func {
return func(cb Callback) {
for _, f := range fs {
if !All(cb, f) {
break
}
}
}
}