Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
R
  • Loading branch information
neuecc committed Aug 13, 2024
1 parent ed773af commit 5767749
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions sandbox/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,8 @@



var current = ObservableSystem.GetUnhandledExceptionHandler();



var status = Observable.Interval(TimeSpan.FromMilliseconds(100)).Index();
var doSomething = Observable.Interval(TimeSpan.FromMilliseconds(100)).Take(5);
status.TakeUntil(doSomething.TakeLast(1)).Subscribe(Console.WriteLine, r => Console.WriteLine("end"));

status.TakeUntil(doSomething.TakeLast(1)).Subscribe(_ => { }, ex =>
{
Console.WriteLine("E" + ex);
}, r =>
{
Console.WriteLine("R" + r);
});


Console.ReadLine()
;
await Task.Delay(TimeSpan.FromDays(1));

0 comments on commit 5767749

Please sign in to comment.