Combines wait_for_event and handle_event along with
wait_for_event
handle_event
wait_for_and_handle_event(config)
config
A list of configuration values as created by the lambda_config function.
lambda_config
NULL