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

Rename SEC discarded to disposed

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