Emit the first item passing a predicate then complete.
observable := rxgo.Just(1, 2, 3)().Find(func(i interface{}) bool {
return i == 2
})
Output:
2
Emit the first item passing a predicate then complete.
observable := rxgo.Just(1, 2, 3)().Find(func(i interface{}) bool {
return i == 2
})
Output:
2