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