Package Usage: go: gopkg.in/tomb.v1
The tomb package offers a conventional API for clean goroutine termination.
A Tomb tracks the lifecycle of a goroutine as alive, dying or dead,
and the reason for its death.
The zero value of a Tomb assumes that a goroutine is about to be
created or already alive. Once Kill or Killf is called with an
argument that informs the reason for death, the goroutine is in
a dying state and is expected to terminate soon. Right before the
goroutine function or method returns, Done must be called to inform
that the goroutine is indeed dead and about to stop running.
A Tomb exposes Dying and Dead channels. These channels are closed
when the Tomb state changes in the respective way. They enable
explicit blocking until the state changes, and also to selectively
unblock select statements accordingly.
When the tomb state changes to dying and there's still logic going
on within the goroutine, nested functions and methods may choose to
return ErrDying as their error value, as this error won't alter the
tomb state if provided to the Kill method. This is a convenient way to
follow standard Go practices in the context of a dying tomb.
For background and a detailed example, see the following blog post:
For a more complex code snippet demonstrating the use of multiple
goroutines with a single Tomb, see:
2 versions
Latest release: plus de 10 ans ago
8 277 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/gopkg.in/tomb.v1
Dependent Repos 15
1024pix/steampipe-plugin-learningcontent
Steampipe plugin to query LCMS contentSize: 101 ko - Last synced: 6 jours ago - Pushed: plus d'un an ago

1024pix/steampipe-plugin-metabase
Use SQL to query databases, tables, permissions and more from MetabaseSize: 1,22 Mo - Last synced: 6 jours ago - Pushed: environ 2 mois ago

pocs/mdl-qor-sdk
This SDK is based upon [QOR](https://github.com/qor/qor) and aims to provide a boilerplate for quickly prototyping admin types applications.Last synced: 8 mois ago - Pushed: environ un an ago
swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi
Last synced: 9 mois ago - Pushed: environ un an ago
betagouv/sealed-secrets Fork of bitnami-labs/sealed-secrets
A Kubernetes controller and tool for one-way encrypted SecretsSize: 19,2 Mo - Last synced: 3 jours ago - Pushed: environ 3 ans ago

tchapgouv/matrix-media-repo Fork of t2bot/matrix-media-repo
Matrix media repository with multi-domain in mind.Size: 6,2 Mo - Last synced: 3 jours ago - Pushed: presque 2 ans ago

1024pix/goauth Fork of grokify/goauth
Utility libraries for Go (aka Golang) API auth including OAuth 2, JWT, TLS Client Authentication and Basic Auth.Size: 737 ko - Last synced: 6 jours ago - Pushed: environ un an ago

radiofrance/ipahealthcheck_exporter Fork of camptocamp/ipahealthcheck_exporter
Prometheus exporter for exposing ipa-healthcheck tool checks as metricsSize: 60,5 ko - Last synced: 3 jours ago - Pushed: environ 4 ans ago



radiofrance/helm-chart-sonarqube Fork of SonarSource/helm-chart-sonarqube
Size: 2,99 Mo - Last synced: 9 mois ago - Pushed: 11 mois ago

web-et-numerique/factory/llle_project/cozy-stack
Fork of cozy-stack https://github.com/cozy/cozy-stackLast synced: 8 mois ago

SocialGouv/rollout-status Fork of clusterise/rollout-status
Alternative to kubectl rollout statusSize: 3,95 Mo - Last synced: 2 jours ago - Pushed: 4 mois ago

ANSSI-FR/ultrablue
User-friendly Lightweight TPM Remote Attestation over BluetoothSize: 3,87 Mo - Last synced: 3 jours ago - Pushed: plus de 2 ans ago


SocialGouv/secretgen-controller Fork of carvel-dev/secretgen-controller
secretgen-controller provides CRDs to specify what secrets need to be on Kubernetes cluster (to be generated or not)Size: 30,4 Mo - Last synced: 2 jours ago - Pushed: environ un an ago


