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 c3f86b8 commit b2cc5a1Copy full SHA for b2cc5a1
src/database.rs
@@ -59,6 +59,14 @@ pub trait Database: Send + ZalsaDatabase + AsDynDatabase {
59
zalsa_mut.runtime_mut().report_tracked_write(durability);
60
}
61
62
+ /// This method triggers cancellation.
63
+ /// If you invoke it while a snapshot exists, it
64
+ /// will block until that snapshot is dropped -- if that snapshot
65
+ /// is owned by the current thread, this could trigger deadlock.
66
+ fn trigger_cancellation(&mut self) {
67
+ let _ = self.zalsa_mut();
68
+ }
69
+
70
/// Reports that the query depends on some state unknown to salsa.
71
///
72
/// Queries which report untracked reads will be re-executed in the next
0 commit comments