Skip to content

Commit dd3338c

Browse files
committed
Add a poll_with_strategy method to easy_wrapper! (#60)
1 parent 6587461 commit dd3338c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

strategy/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ macro_rules! easy_wrapper {
212212
use $crate::EventListenerFuture;
213213
self._inner.into_inner().wait()
214214
}
215+
216+
pub(crate) fn poll_with_strategy<'__strategy, __S: $crate::Strategy<'__strategy>>(
217+
self: ::core::pin::Pin<&'__strategy mut Self>,
218+
strategy: &mut __S,
219+
context: &mut __S::Context,
220+
) -> ::core::task::Poll<$output> {
221+
self.project()._inner.get_pin_mut().poll_with_strategy(strategy, context)
222+
}
215223
}
216224

217225
impl $(<

0 commit comments

Comments
 (0)