[WIP] Fixed imports

This commit is contained in:
2023-04-16 22:01:15 +02:00
parent a155bbc468
commit 60a349f918
4 changed files with 44 additions and 35 deletions

View File

@@ -3,7 +3,6 @@ import unittest
from datetime import datetime
from cpl_core.console import Console
from cpl_reactive_extensions.scheduler.async_scheduler import async_scheduler
from cpl_reactive_extensions.timer import Timer
@@ -25,13 +24,12 @@ class SchedulerTestCase(unittest.TestCase):
timer.clear()
def test_schedule(self):
pass
# count = 0
#
# def task():
# nonlocal count
# Console.write_line(datetime.now(), "Hello world")
# count += 1
#
# # async_scheduler.schedule(task, 100)
# time.sleep(2)
count = 0
def task():
nonlocal count
Console.write_line(datetime.now(), "Hello world")
count += 1
# async_scheduler.schedule(task, 100)
time.sleep(2)