{"id":16874524,"url":"https://github.com/joway/hive","last_synced_at":"2025-04-11T11:24:36.398Z","repository":{"id":57635378,"uuid":"331844102","full_name":"joway/hive","owner":"joway","description":"Hive is a high-efficiency goroutine pool based on pond.","archived":false,"fork":false,"pushed_at":"2021-01-22T05:41:28.000Z","size":7,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T07:51:07.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-22T05:16:56.000Z","updated_at":"2023-02-14T15:38:20.000Z","dependencies_parsed_at":"2022-09-12T22:24:23.421Z","dependency_job_id":null,"html_url":"https://github.com/joway/hive","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joway%2Fhive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joway%2Fhive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joway%2Fhive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joway%2Fhive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joway","download_url":"https://codeload.github.com/joway/hive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248382661,"owners_count":21094561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T15:33:09.388Z","updated_at":"2025-04-11T11:24:36.379Z","avatar_url":"https://github.com/joway.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hive\n![GitHub release](https://img.shields.io/github/tag/joway/hive.svg?label=release)\n[![Go Report Card](https://goreportcard.com/badge/github.com/joway/hive)](https://goreportcard.com/report/github.com/joway/hive)\n[![codecov](https://codecov.io/gh/joway/hive/branch/master/graph/badge.svg?token=Y1YO11FZKU)](https://codecov.io/gh/joway/hive)\n[![CircleCI](https://circleci.com/gh/joway/hive.svg?style=shield)](https://circleci.com/gh/joway/hive)\n\nHive is a high-efficiency **Goroutine Pool** based on [pond](https://github.com/joway/pond).\n\n## Get Started\n\n```go\nh, err := hive.New(\n    hive.WithSize(10),\n    hive.WithNonblocking(false),\n)\nif err != nil {\n    log.Fatal(err)\n}\nerr = h.Submit(context.Background(), func () {\n    //do something\n    time.Sleep(time.Millisecond * 100)\n})\nif err != nil {\n    log.Fatal(err)\n}\n```\n\n## Configuration\n\n| Option            | Default        | Description  |\n| ------------------|:--------------:| :------------|\n| Size              | 10             |Size of the goroutine pool.|\n| MinIdle           | 0              |The minimum size of the idle goroutines.|\n| MaxIdle           | 10             |The maximal size of the idle goroutines.|\n| MinIdleTime       | 5m             |The minimum time that an idle goroutine should be reserved.|\n| Nonblocking       | false          |If true, return ErrOverload when all workers is busy. Otherwise, block Submit method.|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoway%2Fhive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoway%2Fhive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoway%2Fhive/lists"}