{"id":65623,"library":"desertbit-closer-v3","title":"Closer v3","description":"A thread-safe closer that builds a tree of closing relationships to manage graceful shutdown of dependencies.","status":"active","version":"3.7.5","language":"go","source_language":null,"source_url":"https://github.com/desertbit/closer","tags":["closer","graceful-shutdown","thread-safe","dependency-management"],"install":[{"cmd":"go get github.com/desertbit/closer/v3","lang":"bash","label":"Install github.com/desertbit/closer/v3"}],"dependencies":[],"imports":[{"symbol":"closer","correct":"github.com/desertbit/closer/v3"}],"quickstart":{"code":"package main\n\nimport \"github.com/desertbit/closer/v3\"\n\nfunc main() {\n\troot := closer.New()\n\tchild := root.NewChild()\n\tchild.OnClose(func() error {\n\t\tprintln(\"child closed\")\n\t\treturn nil\n\t})\n\troot.Close()\n}","lang":"go","description":"Creates a root closer and a child closer, then closes the root to trigger child cleanup."},"warnings":[],"env_vars":null,"search_vec":"'build':9 'close':13 'closer':1,7,21 'depend':20,29 'dependency-manag':28 'grace':17,23 'graceful-shutdown':22 'manag':16,30 'relationship':14 'safe':6,27 'shutdown':18,24 'thread':5,26 'thread-saf':4,25 'tree':11 'v3':2","created_at":"2026-06-17T17:12:51.351438+00:00","updated_at":"2026-06-17T17:12:51.351438+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/desertbit/closer","github":"https://github.com/desertbit/closer","docs":"https://pkg.go.dev/github.com/desertbit/closer/v3#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-17","next_check":"2026-12-14","install_tag":null}}