Fix typo in util::signal::subscription_token

This commit is contained in:
Nikita Lisitsa 2023-04-18 15:29:49 +03:00
parent b0814989e1
commit 9f0179a86a

View file

@ -46,9 +46,9 @@ namespace psemek::util
struct signal<void>
{
using subscriber = function<void()>;
using subscribtion_token = std::shared_ptr<void>;
using subscription_token = std::shared_ptr<void>;
[[nodiscard]] subscribtion_token subscribe(subscriber callback) const
[[nodiscard]] subscription_token subscribe(subscriber callback) const
{
auto token = std::make_shared<subscriber>(std::move(callback));
subscribers_.push_back(std::weak_ptr{token});