1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

API change to faciliate executer to know the number of active callbacks (#7361)

This commit is contained in:
hreintke 2020-06-08 20:19:18 +02:00 committed by GitHub
parent 83523c0259
commit 7346754c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ public:
}
template<typename... Args>
void execute(Args... params) {
int execute(Args... params) {
for(auto it = std::begin(callBackEventList); it != std::end(callBackEventList); ) {
CallBackHandler &handler = *it;
if (handler->allowRemove() && handler.unique()) {
@ -75,6 +75,7 @@ public:
++it;
}
}
return callBackEventList.size();
}
};