kopia lustrzana https://github.com/micropython/micropython-lib
select: epoll: Accept sizehint param.
rodzic
d122838151
commit
b149831264
|
@ -45,7 +45,7 @@ class Epoll:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
def epoll():
|
def epoll(sizehint=4):
|
||||||
fd = epoll_create(4)
|
fd = epoll_create(sizehint)
|
||||||
os.check_error(fd)
|
os.check_error(fd)
|
||||||
return Epoll(fd)
|
return Epoll(fd)
|
||||||
|
|
Ładowanie…
Reference in New Issue