Change to close_resource and take &self

pull/1860/head
Tony 8 months ago
parent d88fcb5c8a
commit 39dec5d5b4
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -530,10 +530,8 @@ impl<R: Runtime> Store<R> {
self.store.lock().unwrap().save()
}
/// Removes the store from the resource table,
/// this doesn't remove other references of the same store held by you,
/// and the store is only truely closed once all reference held by you are also dropped
pub fn close_store(self) {
/// Removes the store from the resource table
pub fn close_resource(&self) {
let store = self.store.lock().unwrap();
let app = store.app.clone();
let state = app.state::<StoreState>();

Loading…
Cancel
Save