StephenCleary / StructuredConcurrency

Structured concurrency support for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibly update README.md to provide basic problem statement?

DWAK-ATTK opened this issue · comments

@StephenCleary - I arrived here after your answer on SO (https://stackoverflow.com/a/76644501/22196111). I'll definately be studying what you have here... but currently I'm not sure what problem your StructuredConcurrency library is supposed to be solving. You mention in the SO answer "rather than just throwing them on the thread pool". I'm not sure why using the ThreadPool is a bad idea.

If you get to it, I appreciate it. Thanks.

Sounds very similar to Unitask https://github.com/Cysharp/UniTask

I do plan to add some docs. It's completely different than UniTask, both in the problem to solve and the solution technique.

commented

To my POV, it's sound more like manipulate Threads.
Look at https://github.com/Mafyou/Plankton to see how I used his work to make a game =D
For you it's "Thread Pool" and launch when you want.
Rather here, it's more like "Pool" en go together to the ressource X.

This is the classic article explaining the point of structured concurrency, by the author of Trio which is the Python library that popularised it:

https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/