File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,19 @@ pub trait Poller {
8989 fn post ( & self , user_data : usize , result : usize ) -> io:: Result < ( ) > ;
9090
9191 /// Poll the driver with an optional timeout.
92- /// If no timeout specified, the call will block.
92+ ///
93+ /// If there are already tasks completed, this method will return immediately.
94+ ///
95+ /// If there are no tasks completed, this call will block and wait.
96+ /// If no timeout specified, it will block forever.
97+ /// To interrupt the blocking, see [`Poller::post`].
9398 fn poll (
9499 & self ,
95100 timeout : Option < Duration > ,
96101 entries : & mut [ MaybeUninit < Entry > ] ,
97102 ) -> io:: Result < usize > ;
98103
99104 /// Poll the driver and get only one entry back.
100- /// If no timeout specified, the call will block.
101105 ///
102106 /// See [`Poller::poll`].
103107 fn poll_one ( & self , timeout : Option < Duration > ) -> io:: Result < Entry > {
You can’t perform that action at this time.
0 commit comments