Creates a `BlockingContext` suitable for blocking on futures or suspending the current fiber. # Panics Panics if this is invoked outside the context of a fiber.
(
self,
f: impl FnOnce(StoreContextMut<'_, T>, &mut BlockingContext<'_, '_>) -> R,
)
| 349 | /// |
| 350 | /// Panics if this is invoked outside the context of a fiber. |
| 351 | pub(crate) fn with_blocking<R>( |
| 352 | self, |
| 353 | f: impl FnOnce(StoreContextMut<'_, T>, &mut BlockingContext<'_, '_>) -> R, |
| 354 | ) -> R { |
| 355 | BlockingContext::with(self.0, |store, cx| f(StoreContextMut(store), cx)) |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | impl StoreOpaque { |
no test coverage detected