mirror of
https://github.com/status-im/status-go.git
synced 2025-01-19 11:15:08 +00:00
12 lines
141 B
Go
12 lines
141 B
Go
|
package iter
|
||
|
|
||
|
func Chain(fs ...Func) Func {
|
||
|
return func(cb Callback) {
|
||
|
for _, f := range fs {
|
||
|
if !All(cb, f) {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|