LibCore+Userland: Allow canceling promises

To make EventLoop cancel its managed Promises, we need the ability to
cancel them in the first place.
This commit is contained in:
kleines Filmröllchen 2022-12-29 14:53:05 +01:00 committed by Linus Groh
commit bfd9f681f7
Notes: sideshowbarker 2024-07-16 23:34:49 +09:00
6 changed files with 48 additions and 35 deletions

View file

@ -80,7 +80,7 @@ ErrorOr<void> Session::start(LaunchBrowserCallbacks const& callbacks)
// FIXME: Allow this to be more asynchronous. For now, this at least allows us to propagate
// errors received while accepting the Browser and WebContent sockets.
TRY(promise->await());
TRY(TRY(promise->await()));
m_started = true;
return {};