summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject.cpp
diff options
context:
space:
mode:
authorEven Oscar Andersen <even.oscar.andersen@qt.io>2025-11-25 08:24:24 +0100
committerEven Oscar Andersen <even.oscar.andersen@qt.io>2025-11-28 17:59:39 +0100
commitd2785004775df7a9c12c1565d0b56ca18b92df8b (patch)
tree7a7a335b1e0827a65492c4cd964bce8f755e6aa4 /src/corelib/kernel/qobject.cpp
parente35602dd19353f1d658d9bfd2f09333230fb9bba (diff)
wasm: Refactor Promise
Switch from a function based implementation to making Promise a object. Maps straightforward to a javascript promise, except for this: We need to do cleanup when the promise has been fully processed. We do this by adding a final handler. However, the handlers are called in the order they are added, so the final handler we add in the constructor will be executed too early. We solve this, in a non optimal way, by adding a final handler after each then, and catch, handler. This makes the interface easy to use, even if it is suboptimal Fixes: QTBUG-142138 Change-Id: I6be3f102e838467cc98f4a9825fd5f6fe0e1e1a2 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions