@@ -94,7 +94,7 @@ impl<T> Sender<T> {
94
94
///
95
95
/// In the current implementation, the returned future will not yield to the async runtime if the
96
96
/// channel is unbounded. This may change in later versions.
97
- pub fn into_send_async ( self , item : T ) -> SendFut < ' static , T > {
97
+ pub fn into_send_async < ' a > ( self , item : T ) -> SendFut < ' a , T > {
98
98
SendFut {
99
99
sender : OwnedOrRef :: Owned ( self ) ,
100
100
hook : Some ( SendState :: NotYetSent ( item) ) ,
@@ -117,7 +117,7 @@ impl<T> Sender<T> {
117
117
///
118
118
/// In the current implementation, the returned sink will not yield to the async runtime if the
119
119
/// channel is unbounded. This may change in later versions.
120
- pub fn into_sink ( self ) -> SendSink < ' static , T > {
120
+ pub fn into_sink < ' a > ( self ) -> SendSink < ' a , T > {
121
121
SendSink ( SendFut {
122
122
sender : OwnedOrRef :: Owned ( self ) ,
123
123
hook : None ,
@@ -318,7 +318,7 @@ impl<T> Receiver<T> {
318
318
/// Convert this receiver into a future that asynchronously receives a single message from the
319
319
/// channel, returning an error if all senders have been dropped. If the channel is empty, this
320
320
/// future will yield to the async runtime.
321
- pub fn into_recv_async ( self ) -> RecvFut < ' static , T > {
321
+ pub fn into_recv_async < ' a > ( self ) -> RecvFut < ' a , T > {
322
322
RecvFut :: new ( OwnedOrRef :: Owned ( self ) )
323
323
}
324
324
@@ -329,7 +329,7 @@ impl<T> Receiver<T> {
329
329
}
330
330
331
331
/// Convert this receiver into a stream that allows asynchronously receiving messages from the channel.
332
- pub fn into_stream ( self ) -> RecvStream < ' static , T > {
332
+ pub fn into_stream < ' a > ( self ) -> RecvStream < ' a , T > {
333
333
RecvStream ( RecvFut :: new ( OwnedOrRef :: Owned ( self ) ) )
334
334
}
335
335
}
0 commit comments