Table of Contents

Select

Select transforms each emissions from a Schedule based on a provided map function


Schedule select = Schedule.Linear(TimeSpan.FromSeconds(1)).Take(4).Select(x => x + x);

Duration
2 seconds
4 seconds
6 seconds
8 seconds

With current index,


Schedule select = Schedule
    .Linear(TimeSpan.FromSeconds(1))
    .Take(4)
    .Select((x, i) => x + (Duration)TimeSpan.FromSeconds(i));

Duration
1 second
3 seconds
5 seconds
7 seconds