Commit 4586e948 authored by Dominik Charousset's avatar Dominik Charousset

Rename SEC discarded to disposed

parent b6d1f482
......@@ -439,7 +439,6 @@ public:
return *this;
}
/// Tries to open the resource for writing to the buffer. The first `open`
/// wins on concurrent access.
/// @returns a pointer to the buffer on success, `nullptr` otherwise.
......
......@@ -78,7 +78,7 @@ public:
void dispose() override {
if (!std::holds_alternative<error>(value_))
set_error(make_error(sec::discarded));
set_error(make_error(sec::disposed));
}
bool disposed() const noexcept override {
......
......@@ -168,9 +168,11 @@ enum class sec : uint8_t {
action_reschedule_failed,
/// Attaching to an observable failed because the target is invalid.
invalid_observable,
/// Signals to a component that is has been discarded by its parent or the
/// consumer/producer that was attached to the component.
discarded = 70,
/// Attaching to an observable failed because the target already reached its
/// maximum observer count.
too_many_observers = 70,
/// Signals that an operation failed because the target has been disposed.
disposed,
/// Failed to open a resource.
cannot_open_resource,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment