Fix typo in util::signal::subscription_token
This commit is contained in:
parent
b0814989e1
commit
9f0179a86a
1 changed files with 2 additions and 2 deletions
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue