Universal mechanism to manage goroutine lifecycles
built by guoguo
completed Thu, 29 Oct 2026 10:52:29 UTC
Description
run.Group is a universal mechanism to manage goroutine lifecycles.
Create a zero-value run.Group, and then add actors to it. Actors are defined as
a pair of functions: an execute function, which should run synchronously; and an
interrupt function, which, when invoked, should cause the execute function to
return. Finally, invoke Run, which concurrently runs all of the actors, waits
until the first actor exits, invokes the interrupt functions, and finally
returns control to the caller only once all actors have returned. This
general-purpose API allows callers to model pretty much any runnable task, and
achieve well-defined lifecycle semantics for the group.
RPMs
2 files, 2 archessrc
noarch
Logs
riscv64
Changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 1.1.0-16 - convert ASL 2.0 license to SPDX * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 17 2024 Robert-André Mauchin <zebob.m@gmail.com> - 1.1.0-14 - Fix FTBFS * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild