Skip to content

Commit f24493b

Browse files
committed
uasyncio.core: create_task: Fix scheduling.
Should start with zero delay, not at zero absolute time.
1 parent b3c2d0f commit f24493b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uasyncio.core/uasyncio/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def time(self):
2222

2323
def create_task(self, coro):
2424
# CPython 3.4.2
25-
self.call_at(0, coro)
25+
self.call_later_ms_(0, coro)
2626
# CPython asyncio incompatibility: we don't return Task object
2727

2828
def call_soon(self, callback, *args):

0 commit comments

Comments
 (0)