util: add lifetime parameter to ReusableBoxFuture (#3762)

Co-authored-by: Toby Lawrence <[email protected]>
This commit is contained in:
Kestrer
2022-02-09 14:29:21 -05:00
committed by GitHub
co-authored by Toby Lawrence
parent 52fb93dce9
commit 9c688ecdc3
5 changed files with 21 additions and 24 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ enum State<T> {
pub struct PollSender<T> {
sender: Option<Sender<T>>,
state: State<T>,
acquire: ReusableBoxFuture<Result<OwnedPermit<T>, PollSendError<T>>>,
acquire: ReusableBoxFuture<'static, Result<OwnedPermit<T>, PollSendError<T>>>,
}
// Creates a future for acquiring a permit from the underlying channel. This is used to ensure