File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -396,8 +396,10 @@ impl Connection {
396
396
/// path opens. The [`PathId`] for the events can be extracted from
397
397
/// [`OpenPath::path_id`].
398
398
///
399
- /// If opening fails either the future will be immediately ready, or another
400
- /// [`PathEvent`] for the [`PathId`] will be emitted, indicating the failure.
399
+ /// Failure to open a path can either occur immediately, before polling the returned
400
+ /// future, or at a later time. If the failure is immediate [`OpenPath::path_id`] will
401
+ /// return `None` and the future will be ready immediately. If the failure happens
402
+ /// later, a [`PathEvent`] will be emitted.
401
403
pub fn open_path ( & self , addr : SocketAddr , initial_status : PathStatus ) -> OpenPath {
402
404
let mut state = self . 0 . state . lock ( "open_path" ) ;
403
405
let ( on_open_path_send, on_open_path_recv) = watch:: channel ( Ok ( ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments