Home > Net >  Help: in a Excel VSTO add-in multithreaded synchronization problem in the project context
Help: in a Excel VSTO add-in multithreaded synchronization problem in the project context

Time:11-21

CodePudding user response:

With the Parallel ForEach (); To implement a collection in parallel, all elements into the next parallel processing is complete,

CodePudding user response:

Parallel to Excel is a STA, you can't write, Excel will not be pleased,

Standard practice is asynchronous in the queue, and then at the appropriate time synchronization to Excel,
  •  Tags:  
  • C#
  • Related