
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
github.com/hatchify/queue
queue is a threaded job library. It allows for an easy way to cap a batch of actions to a given number of goroutines. Reducing the overhead associated with spinning up a new goroutine.
func ExampleQueue_New() {
var wg sync.WaitGroup
// Initialize a queue with two threads and a length of four
q := New(2, 4)
// Set waitgroup for eight jobs
wg.Add(8)
// Iterate eight times
for i := 0; i < 8; i++ {
// Create job with a closure to maintain the value of i
job := func(i int) Job {
// Return job
return func() {
// Print our stored i value
fmt.Printf("Job %d\n", i)
// Notify waitgroup that we have finished our task
wg.Done()
}
}(i)
// Push job into queue
q.New(job)
}
// Wait until all of our jobs have finished
wg.Wait()
}
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.