.NET Reverse Semaphore?

后端 未结 8 1954
北荒
北荒 2020-12-15 17:21

Perhaps it\'s too late at night, but I can\'t think of a nice way to do this.

I\'ve started a bunch of asynchronous downloads, and I want to wait until they all comp

8条回答
  •  既然无缘
    2020-12-15 18:01

    Check out the CountdownLatch class in this magazine article.

    Update: now covered by the framework since version 4.0, CountdownEvent class.

提交回复
热议问题