pub fn pop_scope(params: PopScopeParams<'_>) -> Result<()>Expand description
Pop the current scope from the active scope stack.
This emits a scope-end event for the target scope and removes any scope-local registrations owned by that scope.
§Parameters
handle_uuid: UUID of the scope that should be popped.output: Optional JSON payload exported as the semantic scope output.timestamp: Optional timestamp recorded on the emitted end event. WhenNone, the runtime uses the current UTC time, or one microsecond after the handle start time if the current time is not later.
§Returns
A Result that is Ok(()) when the scope was popped successfully.
§Errors
Returns FlowError::InvalidArgument when the target scope exists but is
not the current top of stack, and FlowError::NotFound when the UUID is
unknown to the active stack.
§Notes
The implicit root scope cannot be removed.