package
0.0.0-20240601095704-6cb5028aaecf
Repository: https://github.com/sha1n/go-playground.git
Documentation: pkg.go.dev
# README
// Chaining two computers to process messages in a chain (see demo.go)
computer2 := NewComputer(func(message interface{}) {
fmt.Printf("Computer#2: processing message %v\n", message)
}, 0)
computer1 := NewComputer(func(message interface{}) {
fmt.Printf("Computer#1: processing message %v\n", message)
computer2.Enqueue(message)
}, 5)
computer1.Start()
computer2.Start()
produceMessages(10, computer1.Context)
computer1.Shutdown()
computer2.Shutdown()
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author