holepunchto / hyperbee

An append-only B-tree running on a Hypercore
https://docs.holepunch.to
MIT License
254 stars 29 forks source link

Closing a hyperbee? #6

Closed martinheidegger closed 3 years ago

martinheidegger commented 4 years ago

Is there a way for hyperbee to be closed?

mafintosh commented 4 years ago

Just close the feed you pass in

RangerMauve commented 4 years ago

Would a PR adding .close be welcome?

martinheidegger commented 4 years ago

Let me ask differently: is there a chance I break existing things if I close the hypercore at an inconvenient time?

mafintosh commented 4 years ago

No should be safe.