Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Goroutine ¶
Goroutine asynchronous processing of data in chan
Example ¶
package main import ( "fmt" "github.com/sechelper/seclib/async" ) func main() { input := func(c *chan any) { for i := 0; i <= 100000; i++ { *c <- i } } process := func(p ...any) { fmt.Println(p[0]) } async.Goroutine(30, input, process) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.