File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,18 @@ Methods
66
66
67
67
Tuples returned may contain more than 2 elements as described above.
68
68
69
- .. method :: poll.ipoll([ timeout] )
69
+ .. method :: poll.ipoll(timeout=-1, flags=0 )
70
70
71
71
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
73
73
way to poll on streams.
74
74
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
+
75
81
.. admonition :: Difference to CPython
76
82
:class: attention
77
83
You can’t perform that action at this time.
0 commit comments