Creating a execution queue by using Task.ContinueWith?

后端 未结 3 761
旧巷少年郎
旧巷少年郎 2021-02-04 16:32

I have several actions that I want to execute in the background, but they have to be executed synchronously one after the other.

I was wondering if it\'s a good idea to

3条回答
  •  别那么骄傲
    2021-02-04 17:10

    I used this snippet and have seem to get it work as designed. The number of instances in my case does not runs in to thousands, but in single digit. Nevertheless, no issues so far.

    I would be interested in the ConcurrentQueue example, if there is any?

    Thanks

提交回复
热议问题