hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

WIP: support eagerOpen: false #79

Closed mafintosh closed 2 years ago

mafintosh commented 2 years ago

A little unsure about this approach, but leaning positive.

This allows to disable the "load in the background asap" mode and defter to any function call to do so. Usecase is making tons of hypercores that are then thrown away immediately without them clogging up resources.

This needs tests and I think this breaks sessions as it's implemented in this PR

mafintosh commented 2 years ago

Outdated but the idea is still good (we should move it to an issue)

mafintosh commented 2 years ago

closing, but keeping branch in case we wanna do this still