PhoenixGenApi.Executor (PhoenixGenApi v1.1.2)
View SourceThe core execution engine of PhoenixGenApi.
This module is responsible for taking a Request struct, looking up its
corresponding FunConfig, and executing the function call according to the
configuration. It handles synchronous, asynchronous, and streaming responses.
Worker Pools
Async and stream calls now use dedicated worker pools instead of spawning unlimited processes. This provides better resource management and prevents system overload.
Summary
Functions
@spec execute!(PhoenixGenApi.Structs.Request.t()) :: PhoenixGenApi.Structs.Response.t()
Executes a request.
@spec execute_params!(map()) :: PhoenixGenApi.Structs.Response.t()
Executes a request from a map of parameters.
This is a convenience function that decodes the params into a Request struct
before calling execute!/1.