readme typo + process example

This commit is contained in:
laxerrrr 2023-08-01 02:55:34 -03:00 committed by Gelldur
parent ed4b80d1f5
commit 62046399d4

View File

@ -34,7 +34,7 @@ If you want to play with sample online checkout this link: [wandbox.org](https:/
0. Store bus
```cpp
// store it in controller / singleton / std::sharted_ptr whatever you want
// store it in controller / singleton / std::shared_ptr whatever you want
auto bus = std::make_shared<EventBus>();
```
@ -78,6 +78,12 @@ event::Gold myGold{12};
bus->postpone(myGold); // 3 way
```
4. Process the events
```cpp
bus->process();
```
Checkout [tests](test/) or [use cases](use_case/) for more examples. Or create issue what isn't clear :)
# Add to your project