Esempio n. 1
0
 public static IAsyncEnumerable <long> TimerAsync(this IMomentClock clock, long delayInMilliseconds)
 => clock.Timer(delayInMilliseconds).ToAsyncEnumerable();
Esempio n. 2
0
 public static IAsyncEnumerable <long> TimerAsync(this IMomentClock clock, TimeSpan dueIn)
 => clock.Timer(dueIn).ToAsyncEnumerable();
Esempio n. 3
0
 public static IObservable <long> Timer(this IMomentClock clock, long delayInMilliseconds)
 => clock.Timer(TimeSpan.FromMilliseconds(delayInMilliseconds));