insert callbacks to the back, so that will be invoked in the proper order
This commit is contained in:
parent
202d7f2c89
commit
2bbcffc2f3
@ -46,11 +46,11 @@ class Emitter {
|
||||
}
|
||||
|
||||
Connection once(Listener f) {
|
||||
return { onceL, onceL.insert(onceL.cbegin(), std::move(f)) };
|
||||
return { onceL, onceL.insert(onceL.cend(), std::move(f)) };
|
||||
}
|
||||
|
||||
Connection on(Listener f) {
|
||||
return { onL, onL.insert(onL.cbegin(), std::move(f)) };
|
||||
return { onL, onL.insert(onL.cend(), std::move(f)) };
|
||||
}
|
||||
|
||||
void erase(Connection conn) noexcept {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user