Append (+)
Append appends the second Schedule to the
first Schedule.
Warning
Appending to the end of an infinite Schedule will not result in
the second Schedule getting run, as the first will never
complete
Using the Append method,
Schedule append = Schedule
.Linear(TimeSpan.FromSeconds(1))
.Take(2)
.Append(Schedule.Spaced(TimeSpan.FromSeconds(3)).Take(2));
| Duration |
|---|
| 1 second |
| 2 seconds |
| 3 seconds |
| 3 seconds |
Using the operator +,
Schedule append =
Schedule.Linear(TimeSpan.FromSeconds(1)).Take(2)
+ Schedule.Spaced(TimeSpan.FromSeconds(3)).Take(2);
| Duration |
|---|
| 1 second |
| 2 seconds |
| 3 seconds |
| 3 seconds |