macro_rules! of_sequence {
    ( $( $item:expr ),* ) => { ... };
}
Expand description

Creates an observable producing a multiple values.

Completes immediately after emitting the values given. Never emits an error.

Arguments

  • v - A value to emits.

Examples

use rxrust::prelude::*;
use rxrust::of_sequence;

of_sequence!(1, 2, 3)
  .subscribe(|v| {println!("{},", v)});

// print log:
// 1
// 2
// 3