doc: add an notice about possible undefined behaviour. (#887)

This commit is contained in:
kcalbCube
2022-05-20 18:44:25 +10:00
committed by GitHub
parent 8ee91095c5
commit dc295ca0e1

View File

@@ -407,6 +407,8 @@ dispatcher.sink<an_event>().connect<&listener::receive>(listener);
dispatcher.sink<another_event>().connect<&listener::method>(listener);
```
Note that connecting listeners within event handlers can result in undefined
behavior.<br/>
The `disconnect` member function is used to remove one listener at a time or all
of them at once: