How to stream data between two cores over a channel