We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a699e commit 56ff510Copy full SHA for 56ff510
asyncio/asyncio.py
@@ -99,9 +99,11 @@ def __init__(self):
99
self.poller = select.epoll(1)
100
101
def add_reader(self, fd, cb, *args):
102
+ print("add_reader")
103
self.poller.register(fd, select.EPOLLIN, (cb, args))
104
105
def add_writer(self, fd, cb, *args):
106
+ print("add_writer")
107
self.poller.register(fd, select.EPOLLOUT, (cb, args))
108
109
def wait(self, delay):
@@ -112,6 +114,7 @@ def wait(self, delay):
112
114
res = self.poller.poll(int(delay * 1000))
113
115
print("poll: ", res)
116
for cb, ev in res:
117
+ print("Calling %s%s" % (cb[0], cb[1]))
118
cb[0](*cb[1])
119
120
0 commit comments