Skip to content

Instantly share code, notes, and snippets.

View Siliconrob's full-sized avatar
🌎
🙈 🙉 🙊

Robin Michael Siliconrob

🌎
🙈 🙉 🙊
View GitHub Profile
@Siliconrob
Siliconrob / DelayCounter.cs
Created June 3, 2017 20:04 — forked from davidfowl/DelayCounter.cs
Count up from 0 to {count}, showing an item every {delay} milliseconds
public IObservable<int> ObservableCounter(int count, int delay)
{
return Observable.Range(0, count).Zip(
Observable.Interval(TimeSpan.FromMilliseconds(delay)), (item, _) => item);
}