Handler<T> typedef

Future<InvocationResult> Handler (
  1. Context context,
  2. T event
)

A function which ingests and Event and a Context and returns a InvocationResult. The result is ecoded by the Runtime and posted to the Lambda API.

Implementation

typedef Handler<T> = Future<InvocationResult> Function(
    Context context, T event);