Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 583 Bytes

just.md

File metadata and controls

48 lines (31 loc) · 583 Bytes

Just Operator

Overview

Convert an object or a set of objects into an Observable that emits that or those objects.

Examples

Single Item

observable := rxgo.Just(1)()

Output:

1

Multiple Items

observable := rxgo.Just(1, 2, 3)()

Output:

1
2
3

Channel

externalCh := make(chan int)
observable := rxgo.Just(externalCh)()

Options