mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
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:
committed by
Linus Groh
parent
afd0f941b7
commit
bfd9f681f7
@@ -170,7 +170,7 @@ int Client::get_new_id()
|
||||
|
||||
Result Client::handle_promise(int id)
|
||||
{
|
||||
auto result = m_promises.get(id)->promise->await();
|
||||
auto result = TRY(m_promises.get(id)->promise->await());
|
||||
m_promises.remove(id);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user