Skip to main content

after_commit

Function after_commit 

Source
pub fn after_commit<F>(callback: F)
where F: FnOnce() + Send + 'static,
Expand description

Registers a callback to run after the outermost transaction commits.

When no transaction is open, the callback runs immediately.