Professional OPC
Development Tools

logos

Using await Task.Run

More
20 May 2017 13:30 #5170 by support
Replied by support on topic Using await Task.Run
Yes, doing so is safe.

Please Log in or Create an account to join the conversation.

More
19 May 2017 18:52 #5169 by hcvoort
Replied by hcvoort on topic Using await Task.Run
Oke, I will come back on this subject if I encounter issues. Another related question: Can one instance of the EasyUaClient be used by multiple threads at the same time, or do I have to lock the instance untill the instance method is finished?

Please Log in or Create an account to join the conversation.

More
18 May 2017 14:21 #5164 by support
Replied by support on topic Using await Task.Run
This has not been tested, so I cannot really give you a positive or negative answer.
You need to try it yourself.

If you run into problems, report it here, and we will have a look at it.

Best regards

Please Log in or Create an account to join the conversation.

More
18 May 2017 11:17 #5160 by hcvoort
Using await Task.Run was created by hcvoort
Dear Sir/Madam,

Is it possible to use

await Task.Run(()=>{EasyUAClient.XXXXX;}); together with an async method

or will this potentially cause a deadlock?

BR,

Carsten Voort

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.170 seconds

      

 Recommend this on Google