hyperdrive-next icon indicating copy to clipboard operation
hyperdrive-next copied to clipboard

[Feature]: `drive.get(path)` with options like `core.get(index, [options])`

Open vforvilela opened this issue 2 years ago • 0 comments

core.get(index, [options]) has some interesting options as timeout and force local recovery.

Property Description Type Default
wait Wait for the block to be downloaded Boolean true
onwait Hook that is called if the get is waiting for download Boolean () => {}
timeout Wait at max some milliseconds (0 means no timeout) Boolean 0
valueEncoding One of 'json', 'utf-8', or 'binary' String core's valueEncoding

I would like to suggest the same options for drive.get(path)

vforvilela avatar Jan 21 '23 02:01 vforvilela