File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -299,13 +299,14 @@ fn flatten_unordered() {
299299
300300 // stream panics
301301 {
302- let st = once ( async { once ( async { panic ! ( "Polled" ) } ) . boxed ( ) } . boxed ( ) ) . chain (
303- Interchanger { polled : false , base : 0 , wake_immediately : true }
304- . then ( |val| async move { val. boxed ( ) } . boxed ( ) )
305- . take ( 10 ) ,
306- ) ;
302+ let st = once ( async { once ( Box :: pin ( async { panic ! ( "Polled" ) } ) ) . left_stream ( ) } . boxed ( ) )
303+ . chain (
304+ Interchanger { polled : false , base : 0 , wake_immediately : true }
305+ . then ( |val| async move { val. right_stream ( ) } . boxed ( ) )
306+ . take ( 10 ) ,
307+ ) ;
307308
308- let stream = Arc :: new ( Mutex :: new ( st. boxed ( ) . flat_map_unordered ( 10 , |s| s. map ( identity) ) ) ) ;
309+ let stream = Arc :: new ( Mutex :: new ( st. flat_map_unordered ( 10 , |s| s. map ( identity) ) ) ) ;
309310
310311 std:: thread:: spawn ( {
311312 let stream = stream. clone ( ) ;
You can’t perform that action at this time.
0 commit comments