
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
github.com/youngbloood/goabc
goroutine sequential execution
Define functions
func func1(){fmt.Println(11)}
func func2(){fmt.Println(22)}
Add functions into goabc
's queue, the same function can add to queue many times.
// add func1 two times, add func2 one time
goabc.Add(goabc.Func(func1),goabc.Func(func1),goabc.Func(func2))
Remove functions from goabc
's queue, it will remove all the functions that in the queue.
// remove all func1
goabc.Remove(goabc.Func(func1))
flush all functions.
// flush the queue
goabc.Flush()
Implement the hooker to handle the error customer.
goabc.SetHooker(hook)
Start to execute the functions in goroutine ordered.
goabc.Start()
Start to execute the functions orderd, not in goroutine.
goabc.Run()
Start to execute the functions in goroutine, the execute order is random(decide by goroutine-invoke tool).
goabc.Random()
You can implement the Abcer
interface to controll the execute ordered by youself.
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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.