From 62046399d423b74fd2612c85ef287bc6d309e0b4 Mon Sep 17 00:00:00 2001 From: laxerrrr Date: Tue, 1 Aug 2023 02:55:34 -0300 Subject: [PATCH] readme typo + process example --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 44d2d87..0a07d22 100644 --- a/README.md +++ b/README.md @@ -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(); ``` @@ -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