pool v1.2 Release Notes

Release Date: 2015-12-11 // over 8 years ago
  • ➕ Added Consumer Hook

    • 👷 now can register ConsumerHook function that will be run while firing up the consumer routines and that return value will be set/passed to each job. This is particularity useful when creating a saving pool so a the consumer hook would create a database connection for each job to reuse instead of creating an additional one for each job.

    Example

    https://github.com/go-playground/pool/blob/v1/pool_test.go#L55