invoke method
void
invoke()
Run the Runtime in loop and digest events that are fetched from the AWS Lambda API Interface. The events are processed sequentially and are fetched from the AWS Lambda API Interface.
If the invocation of an event was successful the function
sends the InvocationResult via _client.postInvocationResponse(result)
to the API.
If there is an error during the execution. The exception gets caught
and the error is posted via _client.postInvocationError(err)
to the API.
Implementation
void invoke() async {
while (true) {
await _handleInvocation(await _client.getNextInvocation());
}
}