diff options
Diffstat (limited to '')
-rw-r--r-- | src/executor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<R>(&self, f: impl FnOnce() -> R) -> R { + self.0.enter(f) + } } } |