kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: Allow to override queue length, while setting low default.
The default queue length is set to take under 0.5K RAM on 32-bit system. A queue length can be passed to get_event_loop() to override it. This change follows similar change in uasyncio.core.pull/158/head
rodzic
55b4161512
commit
e3dac1d693
|
@ -6,8 +6,8 @@ from uasyncio.core import *
|
||||||
|
|
||||||
class EpollEventLoop(EventLoop):
|
class EpollEventLoop(EventLoop):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, len=42):
|
||||||
EventLoop.__init__(self)
|
EventLoop.__init__(self, len)
|
||||||
self.poller = select.poll()
|
self.poller = select.poll()
|
||||||
self.objmap = {}
|
self.objmap = {}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue