mirror of
https://github.com/simonbrunel/qtpromise.git
synced 2025-07-06 09:15:22 +08:00
Rename qPromise() helper to QtPromise::resolve()
For consistency with other helpers, deprecate `qPromise()` in favor of `QtPromise::resolve()` but also add support for calling this helper with lvalue. Add extra unit tests to make sure that rvalue is not copied.
This commit is contained in:
@ -51,7 +51,7 @@ module.exports = {
|
||||
'qtpromise/helpers/each',
|
||||
'qtpromise/helpers/filter',
|
||||
'qtpromise/helpers/map',
|
||||
'qtpromise/helpers/qpromise',
|
||||
'qtpromise/helpers/resolve',
|
||||
'qtpromise/helpers/qpromiseall'
|
||||
]
|
||||
},
|
||||
|
Reference in New Issue
Block a user