Function assert_persist_future_send
fn assert_persist_future_send(
store: &mut TursoStore,
client: &mut Client<JournaledSession>,
)Available on crate features
tokio and turso only.Expand description
Compile-time guard that TursoStore::persist returns a Send future.
The event loop of the connection calls persist from a tokio::spawned
task, which requires Send futures. turso Statements are !Sync, so
persist takes &mut self. A &mut TursoStore is Send as long as the
store is. This function checks that at compile time. load runs before the
task is spawned, so it is exempt. Never called. It only needs to
type-check.