PhoenixGenApi.Executor (PhoenixGenApi v1.1.2)

View Source

The 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

execute!(request)

Executes a request.

execute_params!(params)

@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.

execute_with_config!(request, fun_config)

sync_call(request, fun_config)