Raxol.Core.Runtime.ComponentManager (Raxol v2.0.1)
View SourceRefactored component manager with functional error handling patterns.
This module eliminates all try/rescue blocks and uses pure functional
error handling with with statements and safe wrapper functions.
Key improvements:
- 3 try/rescue blocks eliminated
- Functional error composition with Task-based safety
- Safe component operation wrappers
- Proper error telemetry integration
- Full backward compatibility maintained
Summary
Functions
Returns a specification to start this module under a supervisor.
Retrieves all components' data.
Retrieves a specific component's data by its ID.
Retrieves the current render queue and clears it.
Directly sets the state for a component (for testing purposes).
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec get_all_components() :: map()
Retrieves all components' data.
Retrieves a specific component's data by its ID.
@spec get_render_queue() :: [String.t()]
Retrieves the current render queue and clears it.
Directly sets the state for a component (for testing purposes).