• Paul Sokolovsky's avatar
    unix/moduselect: Implement "one-shot" flag for poll.poll(). · c1481bb0
    Paul Sokolovsky authored
    After an I/O event is triggered for fd, event flags are automatically reset,
    so no further events are reported until new event flags are set. This is
    an optimization for uasyncio, required to account for coroutine semantics:
    each coroutine issues explicit read/write async call, and once that trigger,
    no events should be reported to coroutine, unless it again explicitly
    requests it. One-shot mode saves one linear scan over the poll array.
    c1481bb0