Esempio n. 1
0
func main() {
	// nothing to do really as we use it as a library
	stream.Init()

	var wg sync.WaitGroup
	wg.Add(3)

	go func() {
		stream.RunSource(dummySource)
		wg.Done()
	}()

	go func() {
		stream.RunSink(dummySink)
		wg.Done()
	}()

	go func() {
		stream.RunProcessor(dummyProcessor)
		wg.Done()
	}()

	wg.Wait()
	stream.Cleanup()
}
func main() {
	stream.Init()
	stream.RunSink(logSink)
	stream.Cleanup()
}