remove async-channel now that context and eval is global
This commit is contained in:
1 parent
9a38331826
commit
cfebb6c900
9 files changed
+33
-52
No files matched your search
@@ -611,19 +611,11 @@ impl Drop for GenerationalRefMutBorrowInfo {
|
||||
}
|
||||
|
||||
/// Handles recycling generational boxes that have been dropped. Your application should have one store or one store per thread.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Default)]
|
||||
pub struct Store {
|
||||
recycled: Rc<RefCell<Vec<MemoryLocation>>>,
|
||||
}
|
||||
|
||||
impl Default for Store {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
recycled: Default::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Store {
|
||||
fn recycle(&self, location: MemoryLocation) {
|
||||
location.drop();
|
||||
|
||||
Reference in new issue
Block a user