func (mng *CoreWorkerManager) AppendBackChannel( connData *connectionsupport.ConnectionData, backChannel *chan coreprocessing.CoreInstruction) { // index := connData.GetResourceIndex() if mng.outChannels[index] == nil { mng.outChannels[index] = newOutChannelGroup() } mng.outChannels[index].Append(connData.GetId(), backChannel) }
func (mng *CoreWorkerManager) RemoveBackChannel(connData *connectionsupport.ConnectionData) { index := connData.GetResourceIndex() if mng.outChannels[index] != nil { mng.outChannels[index].Remove(connData.GetId()) } }