opendal
opendal copied to clipboard
migrate to nodejs's native iterator API when `napi-rs` is ready
We rely heavily on napi-rs
to implement our functions.
The following APIs are still in some sort of simulation and will be migrated to the native implementation when napi-rs
is ready.
- [ ] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator
- [ ] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator
Also see https://github.com/datafuselabs/opendal/issues/1525#issuecomment-1461494776
napi-rs
side
- napi-rs/napi-rs/issues/1493
Is there an issue on the napi-rs
side? We can link to this page to let them know that we have a demand for this feature.
Updated with current napi-rs
's RFC 3.0.
list
should return Vec<Entry>
now. @suyanhanx, would you like to change the API of opendal-nodejs?
list
should returnVec<Entry>
now. @suyanhanx, would you like to change the API of opendal-nodejs?
I'll handle this.
Plan to implement the System.iterator on the js side. Close this issue now.