File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,11 @@ where
112
112
113
113
let spawner = unsafe { lock. runtime . get_opaque_mut ( ) } . spawner ( ) ;
114
114
match spawner. poll ( cx) {
115
- SchedularPoll :: Empty | SchedularPoll :: ShouldYield => {
116
- // if the schedular is empty that means the future is waiting on an external
117
- // future so we should return the schedular.
115
+ SchedularPoll :: Empty => {
116
+ // if the schedular is empty that means the future is waiting on an external or
117
+ // on a promise.
118
+ }
119
+ SchedularPoll :: ShouldYield => {
118
120
this. state = WithFutureState :: FutureCreated { future } ;
119
121
return Poll :: Pending ;
120
122
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ use queue::Queue;
21
21
22
22
use self :: task:: ErasedTaskPtr ;
23
23
24
+ #[ derive( Debug ) ]
24
25
pub enum SchedularPoll {
25
26
/// Returns that the schedular should yield back to the root schedular.
26
27
ShouldYield ,
You can’t perform that action at this time.
0 commit comments