Commit 67c4beb 1 parent d9aca80 commit 67c4beb Copy full SHA for 67c4beb
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,10 @@ where
147
147
T : Send + ' static ,
148
148
{
149
149
#[ cfg( tokio_unstable) ]
150
- return tokio:: task:: Builder :: new ( ) . name ( _name) . spawn ( task) ;
150
+ return tokio:: task:: Builder :: new ( )
151
+ . name ( _name)
152
+ . spawn ( task)
153
+ . expect ( "tokio task should spawn" ) ;
151
154
152
155
#[ cfg( not( tokio_unstable) ) ]
153
156
tokio:: spawn ( task)
Original file line number Diff line number Diff line change @@ -223,7 +223,10 @@ where
223
223
T : Send + ' static ,
224
224
{
225
225
#[ cfg( tokio_unstable) ]
226
- return tokio:: task:: Builder :: new ( ) . name ( _name) . spawn ( task) ;
226
+ return tokio:: task:: Builder :: new ( )
227
+ . name ( _name)
228
+ . spawn ( task)
229
+ . expect ( "tokio task should spawn" ) ;
227
230
228
231
#[ cfg( not( tokio_unstable) ) ]
229
232
tokio:: spawn ( task)
You can’t perform that action at this time.
0 commit comments