File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -820,15 +820,16 @@ and is used to complete the promise, providing a value to the future on the
820820other end. The [ ` Complete::complete ` ] method will transmit the value to the
821821receiving end.
822822
823- The second half, ` rx ` ("receiver"), is of type [ ` Promise ` ] which is a type that
824- implements the [ ` Future ` ] trait. The ` Item ` type is ` T ` , the type of the promise.
823+ The second half, ` rx ` ("receiver"), is of type [ ` Promise ` ] [ promise-type ] which is
824+ a type that implements the [ ` Future ` ] trait. The ` Item ` type is ` T ` , the type of
825+ the promise.
825826The ` Error ` type is [ ` Canceled ` ] , which happens when the [ ` Complete ` ] half is
826827dropped without completing the computation.
827828
828829[ `mpsc::channel` ] : https://doc.rust-lang.org/std/sync/mpsc/fn.channel.html
829830[ `Complete` ] : http://alexcrichton.com/futures-rs/futures/struct.Complete.html
830831[ `Complete::complete` ] : http://alexcrichton.com/futures-rs/futures/struct.Complete.html#method.complete
831- [ `Promise` ] : http://alexcrichton.com/futures-rs/futures/struct.Promise.html
832+ [ promise-type ] : http://alexcrichton.com/futures-rs/futures/struct.Promise.html
832833[ `Canceled` ] : http://alexcrichton.com/futures-rs/futures/struct.Canceled.html
833834
834835This concrete implementation of ` Future ` can be used (as shown here) to
You can’t perform that action at this time.
0 commit comments