[WIP] Fixed imports
This commit is contained in:
parent
2e8886e255
commit
a155bbc468
@ -80,4 +80,7 @@ class ObservableOperatorTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
observable = Observable(call)
|
observable = Observable(call)
|
||||||
|
|
||||||
observable.pipe(debounce_time(600)).subscribe(lambda x: Console.write_line("Hey", x))
|
sub = observable.pipe(debounce_time(600)).subscribe(lambda x: Console.write_line("Hey", x))
|
||||||
|
|
||||||
|
time.sleep(2)
|
||||||
|
sub.unsubscribe()
|
||||||
|
@ -25,12 +25,13 @@ class SchedulerTestCase(unittest.TestCase):
|
|||||||
timer.clear()
|
timer.clear()
|
||||||
|
|
||||||
def test_schedule(self):
|
def test_schedule(self):
|
||||||
count = 0
|
pass
|
||||||
|
# count = 0
|
||||||
def task():
|
#
|
||||||
nonlocal count
|
# def task():
|
||||||
Console.write_line(datetime.now(), "Hello world")
|
# nonlocal count
|
||||||
count += 1
|
# Console.write_line(datetime.now(), "Hello world")
|
||||||
|
# count += 1
|
||||||
async_scheduler.schedule(task, 100)
|
#
|
||||||
time.sleep(2)
|
# # async_scheduler.schedule(task, 100)
|
||||||
|
# time.sleep(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user