Open Regenhardt opened 3 years ago
Tagging subscribers to this area: @carlossanlop See info in area-owners.md if you want to be subscribed.
Author: | Regenhardt |
---|---|
Assignees: | - |
Labels: | `:watch: Not Triaged`, `Pri3`, `area-System.Threading.Channels` |
Milestone: | - |
@adamsitnik @carlossanlop @jozkee
@adamsitnik @carlossanlop @Jozkee might be worth considering to add sample or something to provide people guidance on how to use this library.
@stephentoub do we have any docs for Channels?
I've not written any beyond the XML docs (that fed into the API docs) and https://devblogs.microsoft.com/dotnet/an-introduction-to-system-threading-channels/, which is fairly comprehensive (so maybe the request is to just incorporate content from the blog post into the docs?)
My guess link to the article would be fine as well if they are persistent. Incorporating sounds even better though
The documentation for Channel is currently no more than intellisense can tell me (except which framework versions it applies to...), which is not enough for a documentation page: https://docs.microsoft.com/en-us/dotnet/api/system.threading.channels.channel-2
Channel and Channel aren't that important here, since Channel is just for constructing channels and Channel is just Channel<T, T>.
The big one should have at least some description and a simple example. I haven't fully understood the whole blog post yet, but things like
"A channel is basically a data structure that’s used to store produced data for a consumer to retrieve, and an appropriate synchronization to enable that to happen safely, while also enabling appropriate notifications in both directions."
would be a good start for a description. I will update this issue when understanding more of the blog post and getting a better idea about what to put in the docs.