pub fn lock() -> MutexGuard<'static, ()>Expand description
Held while one tab’s graphify and QCode write a workspace’s instruction files.
Two tabs coming up at once in one workspace would otherwise interleave: one reads the file, the other’s graphify writes its section, the first writes the file back without it. Every tab of every workspace shares the one lock; what it guards takes well under a second.