diff options
| author | Morten Sørvig <morten.sorvig@qt.io> | 2024-10-08 09:31:46 +0200 |
|---|---|---|
| committer | Morten Sørvig <morten.sorvig@qt.io> | 2024-12-02 19:45:18 +0100 |
| commit | 9a2370e434987bc008edebe423947cd6d0f38860 (patch) | |
| tree | bda9482d4beab203425ab664c7b48171179dfab3 /src/gui/doc/snippets | |
| parent | 40e364172f001ce7dd6e4e72716e9c17c9d29b9e (diff) | |
wasm: unifiy eventdispatcher asyncify code paths
There is no difference between these as far as the suspend/resume
functions go; the exiting difference is due to using a more
modern API for the jspi implementation.
Replace EM_JS() usage with EM_ASYNC_JS(). This allows using
await Promise() instead of Asyncify.handleSleep(), and also
removes the need for setting ASYNCIFY_IMPORTS.
Remove the useJspi() function and the duplicate code paths.
Task-number: QTBUG-129746
Change-Id: Id914089868763a1a3d5d575043c29845889f6624
Reviewed-by: Lorn Potter <lorn.potter@qt.io>
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Diffstat (limited to 'src/gui/doc/snippets')
0 files changed, 0 insertions, 0 deletions
