hyperdrive icon indicating copy to clipboard operation
hyperdrive copied to clipboard

wait option not supported any more

Open juliangruber opened this issue 5 years ago • 1 comments

According to the docs, you can pass wait: false to stat() and related methods. I tried this and it doesn't seem to change the function's behavior, and looking at the code I also don't see where this is implemented.

The reason I need this option is because a drive.stat('/') needs to cancel if the drive's content haven't yet been downloaded, otherwise the process keeps hanging forever.

I'd be interested in helping getting this back, unless there is another way.

juliangruber avatar Sep 25 '20 09:09 juliangruber

My temporary fix is to cancel the operation if it doesn't return in the same tick.

juliangruber avatar Sep 25 '20 09:09 juliangruber