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:
parent
83523c0259
commit
7346754c09
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user