Skip to content

Commit

Permalink
event.run: commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed May 29, 2024
1 parent ab2339f commit bb07eca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/shakti/event/run.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ cdef list engine(io_uring ring, unsigned int entries, unsigned int coro_len):
try:
sqe = coro.send(value or None)
except StopIteration as e:
if sqe.job & CORO:
r.append(e.value)
coro_len -= 1
if coro_len:
continue
io_uring_cq_advance(ring, cq_ready)
return r
# if sqe.job & CORO: # TODO
r.append(e.value)
coro_len -= 1
if coro_len:
continue
io_uring_cq_advance(ring, cq_ready)
return r
else:
counter += submission_entry(ring, sqe, coro)
io_uring_cq_advance(ring, cq_ready) # free seen entries
Expand Down

0 comments on commit bb07eca

Please sign in to comment.