mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
rt: switch enter to an RAII guard (#2954)
This commit is contained in:
@@ -34,7 +34,8 @@ impl<F: Future> Future for TokioContext<'_, F> {
|
||||
let handle = me.handle;
|
||||
let fut = me.inner;
|
||||
|
||||
handle.enter(|| fut.poll(cx))
|
||||
let _enter = handle.enter();
|
||||
fut.poll(cx)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user