// NewListener creates a task specific command listener linked to an embedded
// Commander.
NewListener creates a task specific command listener linked to an embedded
Commander.
// NewListener creates a task specific command listener linked to an embedded // Commander .
func (c *Commander) NewListener(taskID string) statemachine.CommandListener {
	c.listeners[taskID] = make(chan *statemachine.Message, 1)
	return &commandListener{c: c.listeners[taskID]}
}
func ( c * Commander ) NewListener ( taskID string ) statemachine . CommandListener { c . listeners [ taskID ] = make ( chan * statemachine . Message , 1 ) return & commandListener { c : c . listeners [ taskID ] } }
NewListener creates a task specific command listener linked to an embedded
Commander.
NewListener creates a task specific command listener linked to an embedded Commander .
// Buffer chan to make sending/recving asynchronous