There's one complication, that is we can't easily make the main-thread "await" for other threads to release their lock. We'd have to sleep te main-thread, included the UI.
Bug 2054381 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
There's one complication, that is we can't easily make the main-thread "await" for other threads to release their lock. We'd have to sleep the main-thread, included the UI.