Function exec_tokio

Source
pub fn exec_tokio<Shared, Event, Run, Return>() -> Result<()>
where Shared: Send + Sync, Event: for<'de> Deserialize<'de> + Debug + Send, Run: for<'a> Runner<'a, Shared, Event, Return>, Return: Serialize,
Expand description

Lambda entrypoint. This function sets up a lambda multi-thread runtimes and executes exec. If you already have your own runtime, use the exec function.

Types:

  • Shared: Type which is shared between lambda invocations. Note that lambda will create multiple environments for simulations invokations and environments are only kept alive for a certain time. It is thus not guaranteed that data can be reused, but with this types its possible.
  • Event: The expected Event which is being send to the lambda by AWS.
  • Run: Runner which is execued for each lambda invocation.
  • Return: Type which is the result of the lamba invocation being returned to AWS