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
This is our non-standard Promise API which doesn't map correctly to the Promise API.
These are non-standard and still used in our code base and could in theory be replaced?
.done() to port to .then()
.fail() replace with .catch()?
.always() is called when the promise is resolved or rejected, can be replaced with .finally()?
.progress()
.stream()
.input()
These deferred promise functions cannot be mapped to the Promise api and needs to be re-designed.
The rest of cockpit.file() can be ported to modern promises.
Uses defer() for .input() and .stream()
There is a resolve() with two arguments in the close eventlistener which can't be done with the Promise API
The API supports .stream() and .input() which cannot be done with a native Promise.
Port all our usage in pages away from cockpit.defer and keep using it internally in cockpit. Two pages needs to be ported for this to happen:
cockpit.defer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is our non-standard Promise API which doesn't map correctly to the Promise API.
Deferred API
These are non-standard and still used in our code base and could in theory be replaced?
.done() to port to .then()
.fail() replace with .catch()?
.always() is called when the promise is resolved or rejected, can be replaced with .finally()?
.progress()
.stream()
.input()
These deferred promise functions cannot be mapped to the Promise api and needs to be re-designed.
File API
The rest of cockpit.file() can be ported to modern promises.
Cockpit Spawn
Uses defer() for .input() and .stream()
There is a resolve() with two arguments in the close eventlistener which can't be done with the Promise API
cockpit.http()
The API supports
.stream()
and.input()
which cannot be done with a native Promise.Stop using cockpit.defer in our pages
Port all our usage in pages away from
cockpit.defer
and keep using it internally in cockpit. Two pages needs to be ported for this to happen:The text was updated successfully, but these errors were encountered: