pub fn create_async_function<F, A, R, FR>(
lua: &Lua,
func: F,
) -> Result<Function>where
F: Fn(A) -> FR + 'static,
A: FromLuaMulti + 'static,
R: IntoLuaMulti + Send + 'static,
FR: Future<Output = Result<R>> + Send + 'static,
Expand description
Creates a new async function that can be used in HAProxy configuration.
Tokio runtime is automatically configured to use multiple threads.