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
261
261
///
262
262
/// * `ready` includes writable.
263
263
/// * 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`.
264
269
pub fn poll_read_ready (
265
270
& self ,
266
271
cx : & mut Context < ' _ > ,
@@ -327,6 +332,11 @@ where
327
332
///
328
333
/// * `ready` contains bits besides `writable` and `hup`.
329
334
/// * 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`.
330
340
pub fn poll_write_ready ( & self , cx : & mut Context < ' _ > ) -> Poll < io:: Result < mio:: Ready > > {
331
341
poll_ready ! (
332
342
self ,
You can’t perform that action at this time.
0 commit comments