Skip to content

## pool.end() does not render the pool unusable afterward. #3635

Description

@brianc

pool.end() does not render the pool unusable afterward.

2 things actually.

  1. await pool.end() doesn't properly wait for the pool to end AFAIK, so that should be fixed.
  2. I don't see a reason calling await pool.end() couldn't leave the pool in a usable state going forward. This would mostly be backwards compatible, but would make it easy in serverless environments to end the pool when the worker shuts down but still be able to keep a global pool reference which is a common pattern.

Originally posted by @brianc in #3598 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions