We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4550e6f commit 2fff142Copy full SHA for 2fff142
src/runtime/context.rs
@@ -60,6 +60,11 @@ impl RuntimeContext {
60
roc.dispatch_completions()
61
}
62
63
+ pub(crate) fn flush(&self) {
64
+ let roc = unsafe { &*self.driver.as_ptr() };
65
+ let _ = roc.flush();
66
+ }
67
+
68
#[inline(always)]
69
pub(crate) fn call_on_thread_park(&self) {
70
self.on_thread_park.get()();
src/runtime/mod.rs
@@ -146,7 +146,7 @@ impl Runtime {
146
147
fn on_thread_park() {
148
CONTEXT.with(|x| {
149
- let _ = x.handle().flush();
+ x.flush();
150
});
151
152
0 commit comments