start_listening: Start listening for events, and process them as they come

View source: R/start-listening.R

start_listeningR Documentation

Start listening for events, and process them as they come

Description

Start listening for events, and process them as they come

Usage

start_listening(config = lambda_config(), timeout_seconds = NULL)

Arguments

config

A list of configuration values as created by the lambda_config function.

timeout_seconds

If set, the function will stop listening for events after this timeout. The timeout is checked between events, so this won't interrupt the function while it is waiting for a new event. This argument is provided for testing purposes, and shouldn't otherwise need to be set: AWS should handle the shutdown of idle Lambda instances.


lambdr documentation built on Nov. 25, 2023, 5:08 p.m.