{"id":23922602,"url":"https://github.com/datenhahn/golang-awaitility","last_synced_at":"2025-04-11T23:52:19.400Z","repository":{"id":57481681,"uuid":"140355190","full_name":"datenhahn/golang-awaitility","owner":"datenhahn","description":"golang-awaitility provides a simple mechanism to poll for conditions with a general timeout.","archived":false,"fork":false,"pushed_at":"2018-07-10T10:10:45.000Z","size":14,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T23:52:15.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datenhahn.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-10T00:10:07.000Z","updated_at":"2024-06-21T08:54:16.000Z","dependencies_parsed_at":"2022-09-17T04:51:51.222Z","dependency_job_id":null,"html_url":"https://github.com/datenhahn/golang-awaitility","commit_stats":null,"previous_names":["ecodia/golang-awaitility"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fgolang-awaitility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fgolang-awaitility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fgolang-awaitility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fgolang-awaitility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datenhahn","download_url":"https://codeload.github.com/datenhahn/golang-awaitility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497855,"owners_count":21113984,"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":"2025-01-05T17:15:10.545Z","updated_at":"2025-04-11T23:52:19.378Z","avatar_url":"https://github.com/datenhahn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golang-awaitility\n\n![Golang Awaitility Logo](golang-awaitility-logo.png)\n\n Package golang_awaitility provides a simple mechanism to poll for conditions with a general timeout.\n\nIt is inspired by the great jvm lib \"awaitility\" (see https://github.com/awaitility/awaitility)\n\n## Example\n\n```go\npackage example\n\nimport (\n\t\"github.com/ecodia/golang-awaitility/awaitility\"\n\t\"testing\"\n\t\"time\"\n\t)\n\nfunc TestSomething(t *testing.T)  {\n   \terr := awaitility.Await(100 * time.Millisecond, 1000 * time.Millisecond, func() bool {\n   \t\t// do a real check here, e.g. some kind of isConnected()\n   \t\treturn true\n   \t})\n   \t\n   \tif err != nil {\n   \t\tt.Errorf(\"Unexpected error during await: %s\", err)\n   \t}\n \n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatenhahn%2Fgolang-awaitility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatenhahn%2Fgolang-awaitility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatenhahn%2Fgolang-awaitility/lists"}