We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently this project use callback and stream to handle asynchronous flow control.
Now with Promise(async/await) and AsyncGenerator, we will be about to write asynchronous code like synchronous code.
AsyncGenerator
stream.Readable support Readable.from(generate()), so we only need add it to change public api result, and use async generator internally.
stream.Readable
Readable.from(generate())
what will changed: list*, putObject, fPutObject.
list*
putObject
fPutObject
Also remove ObjectUploader, this class is used internally, so also non-breaking change
ObjectUploader
a promise async/await version of fPutObject for compare(no api change)
https://github.com/trim21/minio-js/blob/81095dc271c7be78636afdb2d67219d300422a6c/src/main/client.ts#L1281-L1306
minio-js/src/main/minio.js
Line 1076 in 119b8c2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rewrite internal asynchronous mechanism to promise and async iterator
Currently this project use callback and stream to handle asynchronous flow control.
Now with Promise(async/await) and
AsyncGenerator
, we will be about to write asynchronous code like synchronous code.stream.Readable
supportReadable.from(generate())
, so we only need add it to change public api result, and use async generator internally.what will changed:
list*
,putObject
,fPutObject
.Also remove
ObjectUploader
, this class is used internally, so also non-breaking changea promise async/await version of
fPutObject
for compare(no api change)https://github.com/trim21/minio-js/blob/81095dc271c7be78636afdb2d67219d300422a6c/src/main/client.ts#L1281-L1306
minio-js/src/main/minio.js
Line 1076 in 119b8c2
The text was updated successfully, but these errors were encountered: