kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: Schedule simple I/O completion callbacks directly in event loop.
Simple == without args. This is expected action for them, and saves creation of lambda just for that. Actually, probably all callbacks should be handled this way.pull/65/merge
rodzic
7cd53c8bf8
commit
b4b19f1dce
|
@ -58,7 +58,7 @@ class EpollEventLoop(EventLoop):
|
|||
if isinstance(cb, tuple):
|
||||
cb[0](*cb[1])
|
||||
else:
|
||||
cb()
|
||||
self.call_soon(cb)
|
||||
|
||||
|
||||
class StreamReader:
|
||||
|
|
Ładowanie…
Reference in New Issue