File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,12 +66,18 @@ Methods
6666
6767 Tuples returned may contain more than 2 elements as described above.
6868
69- .. method :: poll.ipoll([ timeout] )
69+ .. method :: poll.ipoll(timeout=-1, flags=0 )
7070
7171 Like :meth: `poll.poll `, but instead returns an iterator which yields
72- callee-owned tuples. This function provides efficient, allocation-free
72+ ` callee-owned tuples ` . This function provides efficient, allocation-free
7373 way to poll on streams.
7474
75+ If *flags * is 1, one-shot behavior for events is employed: streams for
76+ which events happened, event mask will be automatically reset (equivalent
77+ to ``poll.modify(obj, 0) ``), so new events for such a stream won't be
78+ processed until new mask is set with `poll.modify() `. This behavior is
79+ useful for asynchronous I/O schedulers.
80+
7581 .. admonition :: Difference to CPython
7682 :class: attention
7783
You can’t perform that action at this time.
0 commit comments