mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibCore: Mark the lambda in Promise::when_resolved as mutable
This allows the handler passed into this function to also be mutable.
This commit is contained in:
parent
8f6169859d
commit
0f05aac290
|
|
@ -82,7 +82,7 @@ public:
|
|||
template<CallableAs<void, Result&> F>
|
||||
Promise& when_resolved(F handler)
|
||||
{
|
||||
return when_resolved([handler = move(handler)](Result& result) -> ErrorOr<void> {
|
||||
return when_resolved([handler = move(handler)](Result& result) mutable -> ErrorOr<void> {
|
||||
handler(result);
|
||||
return {};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user