{"id":51391,"library":"tomb-v2","title":"Tomb v2","description":"The tomb package handles clean goroutine tracking and termination.","status":"active","version":"2.0.0-20161208151619-d5d1b5820637","language":"go","source_language":null,"source_url":"https://github.com/go-tomb/tomb","tags":["goroutine","tracking","termination","cleanup"],"install":[{"cmd":"go get gopkg.in/tomb.v2","lang":"bash","label":"Install gopkg.in/tomb.v2"}],"dependencies":[],"imports":[{"symbol":"tomb","correct":"gopkg.in/tomb.v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"gopkg.in/tomb.v2\"\n)\n\nfunc main() {\n\tt := tomb.Tomb{}\n\tt.Go(func() error {\n\t\treturn nil\n\t})\n\terr := t.Wait()\n\tfmt.Println(err)\n}","lang":"go","description":"Creates a tomb, runs a goroutine, and waits for it to finish."},"warnings":[],"env_vars":null,"search_vec":"'clean':7 'cleanup':15 'goroutin':8,12 'handl':6 'packag':5 'termin':11,14 'tomb':1,4 'track':9,13 'v2':2","created_at":"2026-06-15T06:13:09.452324+00:00","updated_at":"2026-06-15T06:13:09.452324+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-tomb/tomb","github":"https://github.com/go-tomb/tomb","docs":"https://pkg.go.dev/gopkg.in/tomb.v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}