Skip to content

Emil B
Dec 13, 20191 min read

1.0.0: Initial release

The package provides a simple mechanism for managing application's background jobs, allowing easy to manage graceful shutdown, waiting for completion, and error propagation and custom propagators creation.

Features

  • Graceful Shutdown: Define the shutdown order for your application’s background jobs without manually coordinating channels and goroutines.
  • Readiness: Wait until all background jobs report that they’re ready.
  • Waiting: Wait for all waitable background jobs to complete.
  • Annotations: Quickly identify the cause of errors or stalled shutdowns.
  • Error Groups: Propagate errors across the background job tree.
  • Custom Propagators

More info: https://github.com/lefelys/background

Did you enjoy this article?

Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.

Across the AtmosphereDiscussions