What is the best way to accomplish the following in TPL dataflow:
- I have a TransformManyBlock that for each received element may produce a very long sequence of output elements
- It would be nice to have an ability to push some elements from the TransformManyBlock further to pipeline not waiting while the whole sequence is generated
As far as I understand this is quite easy in RX, as observer is accessible for data push; but how this shall be done in TDF when blocks are normally bounded with LinkTo and are not aware of each other?
UPD: producer (something wrapped by TransformManyBlock) is asynchronous and it's result looks like Task<IEnumerable<T>>