pub fn create_async_function<'lua, A, R, F, FR>(
lua: &'lua Lua,
func: F,
) -> Result<Function<'lua>>where
A: FromLuaMulti<'lua> + 'static,
R: IntoLuaMulti<'lua> + Send + 'static,
F: Fn(A) -> FR + '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.