alexa-ability-timeout
Example
;;; const app = applicationId: 'my-application-id'; app; // 5 seconds // slow, cancelable operation.// Listen for the `timeout` event on the request and cancel the request appropriatelyapp; // slow, operation that we can't cancel.// just check the `req.timedOut` property to see if it is safe to continueapp; app; const handler = ;
API
timeout(ms) -> middleware
Creates a middleware function that times out the request after
the given ms
have passed.
req.clearTimeout()
A function to stop the timeout completely.
req.timedOut
A boolean indicating whether the request has timed out.