checking out new gc approach
This commit is contained in:
3
src/y.js
3
src/y.js
@@ -36,12 +36,15 @@ class YConfig {
|
||||
this.connector.disconnect()
|
||||
}
|
||||
reconnect () {
|
||||
this.connector.reconnect()
|
||||
/* TODO: maybe do this..
|
||||
Promise.all([
|
||||
this.db.garbageCollect(),
|
||||
this.db.garbageCollect()
|
||||
]).then(() => {
|
||||
this.connector.reconnect()
|
||||
})
|
||||
*/
|
||||
}
|
||||
destroy () {
|
||||
this.connector.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user