We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25764fb commit 05e449dCopy full SHA for 05e449d
Libraries/LibCore/ThreadEventQueue.cpp
@@ -114,7 +114,6 @@ size_t ThreadEventQueue::process()
114
m_private->pending_promises.remove_all_matching([](auto& job) { return job->is_resolved() || job->is_rejected(); });
115
}
116
117
- size_t processed_events = 0;
118
for (auto& queued_event : events) {
119
if (auto receiver = queued_event.receiver.strong_ref()) {
120
switch (queued_event.event_type) {
@@ -138,10 +137,9 @@ size_t ThreadEventQueue::process()
138
137
// Receiver gone, drop the event.
139
140
141
- ++processed_events;
142
143
144
- return processed_events;
+ return events.size();
145
146
147
bool ThreadEventQueue::has_pending_events() const
0 commit comments