We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a651b64 commit 8ab875cCopy full SHA for 8ab875c
super_native_extensions/rust/src/context.rs
@@ -98,18 +98,6 @@ impl Context {
98
Err(_) => CURRENT_CONTEXT_FALLBACK.with(|c| c.borrow().as_ref().map(|c| c.clone())),
99
}
100
101
-
102
- #[cfg(feature = "mock")]
103
- /// Helper function for unit tests. Will create temporary context,
104
- /// run the future in run loop and wait until completed.
105
- pub fn run_test(future: impl futures::Future + 'static) {
106
- let context = Context::new();
107
- Context::get().run_loop().spawn(async {
108
- future.await;
109
- Context::get().run_loop().stop();
110
- });
111
- context.run_loop().run();
112
- }
113
114
115
thread_local! {
0 commit comments