Create an Observable that emits the return value of a function.
observable := rxgo.Start([]rxgo.Supplier{func(ctx context.Context) rxgo.Item {
return rxgo.Of(1)
}, func(ctx context.Context) rxgo.Item {
return rxgo.Of(2)
}})
Output:
1
2
Create an Observable that emits the return value of a function.
observable := rxgo.Start([]rxgo.Supplier{func(ctx context.Context) rxgo.Item {
return rxgo.Of(1)
}, func(ctx context.Context) rxgo.Item {
return rxgo.Of(2)
}})
Output:
1
2