/// <summary> /// Receive a sublist of messages sent from the IScatterSender. /// </summary> /// <returns>The sublist of messages</returns> public List <T> Receive(CancellationTokenSource cancellationSource = null) { IList <T> elements = _topology.ReceiveListFromParent(cancellationSource); _topology.ScatterToChildren(elements, MessageType.Data); return(elements.ToList()); }
/// <summary> /// Receive a sublist of messages sent from the IScatterSender. /// </summary> /// <returns>The sublist of messages</returns> public List <T> Receive() { IList <T> elements = _topology.ReceiveListFromParent(); _topology.ScatterToChildren(elements, MessageType.Data); return(elements.ToList()); }