pub trait ParallelDatabase: Database + Send {
    fn fork(&self) -> Self;
}
Expand description

Indicates a database that also supports parallel query evaluation. All of Salsa’s base query support is capable of parallel execution, but for it to work, your query key/value types must also be Send, as must any additional data in your database.

Required Methods

Creates a copy of this database destined for another thread. See also Runtime::fork.

Warning. This second handle is intended to be used from a separate thread. Using two database handles from the same thread can lead to deadlock.

Implementors