kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.core: Typo fix in recently added .create_task() method.
rodzic
c1159a477e
commit
b88cb425f8
|
@ -1,6 +1,6 @@
|
|||
srctype = micropython-lib
|
||||
type = package
|
||||
version = 0.8
|
||||
version = 0.8.1
|
||||
author = Paul Sokolovsky
|
||||
long_desc = Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess. (Core event loop).
|
||||
depends = heapq, logging
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
|
||||
|
||||
setup(name='micropython-uasyncio.core',
|
||||
version='0.8',
|
||||
version='0.8.1',
|
||||
description='uasyncio.core module for MicroPython',
|
||||
long_description='Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess. (Core event loop).',
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
|
|
|
@ -18,7 +18,7 @@ class EventLoop:
|
|||
|
||||
def create_task(self, coro):
|
||||
# CPython 3.4.2
|
||||
self.call_at(0, callback)
|
||||
self.call_at(0, coro)
|
||||
# CPython asyncio incompatibility: we don't return Task object
|
||||
|
||||
def call_soon(self, callback, *args):
|
||||
|
|
Ładowanie…
Reference in New Issue