3

Channels are instantiated using the static methods CreateUnbounded<TType> or CreateBounded<TType>. The created channel will accept writes and emit reads of TType.

In my use case I want a channel that writes TType but emits objects. It looks like this would be possible, as there is a type Channel<TWrite, TRead> so essentially I would like a Channel<TWrite, object>. Is there a way for me to create this instance? See screenshot below

Desired instance

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
pardahlman
  • 1,394
  • 10
  • 22
  • https://devblogs.microsoft.com/dotnet/an-introduction-to-system-threading-channels/ is an introduction to Channels - this could probably help you (and everybody that finds this question) – habakuk Mar 24 '20 at 22:07

0 Answers0