Added take

This commit is contained in:
2023-04-16 15:48:33 +02:00
parent 82f23f237c
commit 30b163a440
8 changed files with 49 additions and 43 deletions

View File

@@ -23,5 +23,5 @@ class ObservableOperatorTestCase(unittest.TestCase):
def sub(x):
Console.write_line(x)
observable = Interval(1.0)
observable = Interval(0.1)
sub = observable.pipe(take(2)).subscribe(sub)