Skip to content

Commit

Permalink
Add a poll_with_strategy method to easy_wrapper! (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed May 27, 2023
1 parent d6065ed commit 5180532
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions strategy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ macro_rules! easy_wrapper {
use $crate::EventListenerFuture;
self._inner.into_inner().wait()
}

pub(crate) fn poll_with_strategy<'__strategy, __S: $crate::Strategy<'__strategy>>(
self: ::core::pin::Pin<&'__strategy mut Self>,
strategy: &mut __S,
context: &mut __S::Context,
) -> ::core::task::Poll<$output> {
self.project()._inner.get_pin_mut().poll_with_strategy(strategy, context)
}
}

impl $(<
Expand Down

0 comments on commit 5180532

Please sign in to comment.