File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,11 @@ where
261261 ///
262262 /// * `ready` includes writable.
263263 /// * called from outside of a task context.
264+ ///
265+ /// # Warning
266+ ///
267+ /// This method may not be called concurrently. It takes `&self` to allow
268+ /// calling it concurrently with `poll_write_ready`.
264269 pub fn poll_read_ready (
265270 & self ,
266271 cx : & mut Context < ' _ > ,
@@ -327,6 +332,11 @@ where
327332 ///
328333 /// * `ready` contains bits besides `writable` and `hup`.
329334 /// * called from outside of a task context.
335+ ///
336+ /// # Warning
337+ ///
338+ /// This method may not be called concurrently. It takes `&self` to allow
339+ /// calling it concurrently with `poll_read_ready`.
330340 pub fn poll_write_ready ( & self , cx : & mut Context < ' _ > ) -> Poll < io:: Result < mio:: Ready > > {
331341 poll_ready ! (
332342 self ,
You can’t perform that action at this time.
0 commit comments