mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
add invalidate
This commit is contained in:
parent
e5a3c1fbcd
commit
2c7f77483c
@ -102,6 +102,13 @@ public:
|
||||
// TODO Transmute the returned callback here.
|
||||
return Continuable<Callback<_ATy...>>(std::move(*this));
|
||||
}
|
||||
|
||||
/// Invalidates the Continuable
|
||||
Continuable& invalidate()
|
||||
{
|
||||
_released = true;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
namespace detail
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user