Skip to content

Commit 56ff510

Browse files
committed
asyncio: Add dumb debug output.
1 parent a0a699e commit 56ff510

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

asyncio/asyncio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ def __init__(self):
9999
self.poller = select.epoll(1)
100100

101101
def add_reader(self, fd, cb, *args):
102+
print("add_reader")
102103
self.poller.register(fd, select.EPOLLIN, (cb, args))
103104

104105
def add_writer(self, fd, cb, *args):
106+
print("add_writer")
105107
self.poller.register(fd, select.EPOLLOUT, (cb, args))
106108

107109
def wait(self, delay):
@@ -112,6 +114,7 @@ def wait(self, delay):
112114
res = self.poller.poll(int(delay * 1000))
113115
print("poll: ", res)
114116
for cb, ev in res:
117+
print("Calling %s%s" % (cb[0], cb[1]))
115118
cb[0](*cb[1])
116119

117120

0 commit comments

Comments
 (0)