Bits Bender

Results 23 comments of Bits Bender

Hi Yoav, Can you please give examples of how you wish to use these features with STP? Regards, Ami

Hi @yoav-melamed, By async/await I thought you meant that when you enqueue an async method it will continue to work on the STP. For example let's take this async method:...

Hi @yoav-melamed & @MichelZ, I started to work on the async/await a while ago and I am still figuring out how to solve some scenarios. However, why do you want...

Hi @yoav-melamed, Thanks. The threads of the STP suppose to be worker threads, hence they should use the CPU. When your work item on the STP awaits, it just delegate...

Did you mean .ConfigureAwait(false) ?

Do you use the WorkItemGroups to limit concurrency or use the STP directly ?

I have dilemas regarding async methods and the WorkItemGroup. 1. Lets say you enqueue 2 async work items into a WorkItemGroup with concurrency of 1. The 1st starts executing and...

Hi @yoav-melamed, I looked at your sample and I realized that using the QueueWorkItem for a Task is not the best solution. When this project started (.net 1.1) the Task...

Hi @yoav-melamed, The concurrency is of the threads not the tasks. When a work item awaits, it releases the thread to another work item. Ami

Hi @yoav-melamed, I pushed anothee commit to the [async](https://github.com/amibar/SmartThreadPool/tree/async) branch. This time a WorkItemsGroup cannot have more than the Concurrency work items executing. Please check if it works for you....