diff --git a/src/executor.rs b/src/executor.rs index e31bd93d..b4be5264 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -38,6 +38,10 @@ mod platform { ) { let _ = self.0.spawn(future); } + + fn enter(&self, f: impl FnOnce() -> R) -> R { + self.0.enter(f) + } } }