@lambda-middleware/do-not-wait
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@lambda-middleware/do-not-wait

npm version downloads open issues debug build status codecov dependency status devDependency status

AWS lambda middleware to prevent Lambda from timing out because of processes running after returning a value.

Lambda middleware

This middleware is part of the lambda middleware series. It can be used independently.

Usage

import { doNotWait } from "@lambda-middleware/do-not-wait";

// This is your AWS handler
async function helloWorld() {
  return {
    statusCode: 200,
    body: "",
  };
}

// Wrap the handler with the middleware
export const handler = doNotWait()(helloWorld);

Readme

Keywords

Package Sidebar

Install

npm i @lambda-middleware/do-not-wait

Weekly Downloads

64

Version

1.0.1

License

MIT

Unpacked Size

7.68 kB

Total Files

14

Last publish

Collaborators

  • dbartholomae