observables v0.1.4 Observables.Obs View Source

Link to this section Summary

Functions

Takes an enumerable and will “spit” each value one by one, every delay seconds. If the enum is consumed, returns done

Range creates an observable that will start at the given integer and run until the last integer. If no second argument is given, the stream is infinite. One can use :infinity as the end for an infinite stream (see: https://elixirforum.com/t/infinity-in-elixir-erlang/7396)

repeat takes a function as argument and an optional interval. The function will be repeatedly executed, and the result will be emitted as an event

Link to this section Functions

Link to this function distinct(arg, f \\ fn x, y -> x == y end) View Source
Link to this function from_enum(coll, delay \\ 1000) View Source

Takes an enumerable and will “spit” each value one by one, every delay seconds. If the enum is consumed, returns done.

Link to this function range(first, last, delay \\ 1000) View Source

Range creates an observable that will start at the given integer and run until the last integer. If no second argument is given, the stream is infinite. One can use :infinity as the end for an infinite stream (see: https://elixirforum.com/t/infinity-in-elixir-erlang/7396)

repeat takes a function as argument and an optional interval. The function will be repeatedly executed, and the result will be emitted as an event.

Link to this function starts_with(arg, start_vs) View Source