func NewMultiProcessor()

in v2/processor.go [127:139]


func NewMultiProcessor(receiversEx []*ReceiverEx, handler HandlerFunc, options *ProcessorOptions) *Processor {
	opts := applyProcessorOptions(options)
	var receivers = make(map[string]*ReceiverEx)
	for _, receiver := range receiversEx {
		receivers[receiver.name] = receiver
	}
	return &Processor{
		receivers:         receivers,
		handle:            handler,
		options:           *opts,
		concurrencyTokens: make(chan struct{}, opts.MaxConcurrency),
	}
}