I know how to use promise in qml.
However, obviously awaiting is more convenient.
According to https://bugreports.qt.io/browse/QTBUG-58620.
They said will add support about async/await in Qt 6.6.
so how can i use it ? The support is really?
Hope to use it like this:
function getSomething() {
return "something";
}
async function testAsync() {
return Promise.resolve("hello async");
}
async function test() {
const v1 = await getSomething();
const v2 = await testAsync();
console.log(v1, v2);
}