
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
github.com/dpumford/async
This package simplifies the process of running code concurrently. It codifies a common WaitGroup
+ channels pattern to reduce the amount of code required to start an arbitrary number of concurrent functions and wait for their results. The functions use generics to keep our code honest at compile time.
func main() {
multiplierQueue := async.NewFunctionQueue[int, int](3)
for i := 0; i < 10; i++ {
multiplierQueue.Run(func(num int) (int, error) {
return num * num, nil
}, i)
}
results := multiplierQueue.Wait()
for _, v := range results {
if v.Err != nil {
panic(v.Err)
}
fmt.Println(v.R)
}
}
A larger example service can be found at ./examples/cat_facts
.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.