Ejemplo n.º 1
0
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)
}
Ejemplo n.º 2
0
func (mng *CoreWorkerManager) RemoveBackChannel(connData *connectionsupport.ConnectionData) {
	index := connData.GetResourceIndex()
	if mng.outChannels[index] != nil {
		mng.outChannels[index].Remove(connData.GetId())
	}
}