@@ -69,7 +69,6 @@ impl future::Future for WaitFor {
69
69
}
70
70
impl Drop for WaitFor {
71
71
fn drop ( & mut self ) {
72
- println ! ( "dropping {:?}" , self ) ;
73
72
if self . needs_deregistration {
74
73
Reactor :: current ( ) . deregister_waitee ( & self . waitee )
75
74
}
@@ -149,7 +148,6 @@ impl Reactor {
149
148
"Attempting to block on an empty list of pollables - without any pending work, no progress can be made and wasi::io::poll::poll will trap"
150
149
) ;
151
150
152
- println ! ( "polling for {indexes:?}" ) ;
153
151
// Now that we have that association, we're ready to poll our targets.
154
152
// This will block until an event has completed.
155
153
let ready_indexes = wasi:: io:: poll:: poll ( & targets) ;
@@ -165,30 +163,26 @@ impl Reactor {
165
163
for key in ready_keys {
166
164
for ( waitee, waker) in reactor. wakers . iter ( ) {
167
165
if waitee. pollable . 0 . key == key {
168
- println ! ( "waking {key:?}" ) ;
169
166
waker. wake_by_ref ( )
170
167
}
171
168
}
172
169
}
173
170
}
174
171
175
- /// Turn a wasi [`Pollable`] into an [`AsyncPollable`]
172
+ /// Turn a Wasi [`Pollable`] into an [`AsyncPollable`]
176
173
pub fn schedule ( & self , pollable : Pollable ) -> AsyncPollable {
177
174
let mut reactor = self . inner . borrow_mut ( ) ;
178
175
let key = EventKey ( reactor. pollables . insert ( pollable) ) ;
179
- println ! ( "schedule pollable as {key:?}" ) ;
180
176
AsyncPollable ( Rc :: new ( Registration { key } ) )
181
177
}
182
178
183
179
fn deregister_event ( & self , key : EventKey ) {
184
180
let mut reactor = self . inner . borrow_mut ( ) ;
185
- println ! ( "deregister {key:?}" , ) ;
186
181
reactor. pollables . remove ( key. 0 ) ;
187
182
}
188
183
189
184
fn deregister_waitee ( & self , waitee : & Waitee ) {
190
185
let mut reactor = self . inner . borrow_mut ( ) ;
191
- println ! ( "deregister waker for {waitee:?}" , ) ;
192
186
reactor. wakers . remove ( waitee) ;
193
187
}
194
188
@@ -200,10 +194,8 @@ impl Reactor {
200
194
. expect ( "only live EventKey can be checked for readiness" )
201
195
. ready ( ) ;
202
196
if !ready {
203
- println ! ( "register waker for {waitee:?}" ) ;
204
197
reactor. wakers . insert ( waitee. clone ( ) , waker. clone ( ) ) ;
205
198
}
206
- println ! ( "ready {ready} {waitee:?}" ) ;
207
199
ready
208
200
}
209
201
0 commit comments