Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project.close() #227

Closed
6 of 7 tasks
gmaclennan opened this issue Aug 27, 2023 · 0 comments · Fixed by #375
Closed
6 of 7 tasks

Add project.close() #227

gmaclennan opened this issue Aug 27, 2023 · 0 comments · Fixed by #375
Assignees

Comments

@gmaclennan
Copy link
Member

gmaclennan commented Aug 27, 2023

Description

project.close() should close all storage and remove event listeners so that everything can be garbage collected, and another project instance can be created without trying to access / write to the same resources.

Tasks

  • close multi-core-indexers
  • remove listeners on multi-core-indexers (in DataType)
  • close indexer storage
  • close hypercores
  • close hypercore storage
  • close project database
  • figure out if anything else needs to be closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants