When use this analyzer? #1112
-
Hi, it is recommended use this analyser on any application? i am working on microservices and console application and when using a Lasy<Task> it recomend using AsyncLazy... when i use it, it again tells me to use a JoiningTaskFactory about the UI thread. So i start thinking that i am wrongly trying to use a analayzer for other types of application. If i can use this on any type of application, what is the recommended way to get the JoiningTaskFactory? to make the analyzer stop warning me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, most of these analyzers are useful for any type of application. If your application has no main thread, you can disable the specific rules that refer to it. For example the one about using JoinableTaskFactory can be turned off if you don't have a main thread. |
Beta Was this translation helpful? Give feedback.
Yes, most of these analyzers are useful for any type of application. If your application has no main thread, you can disable the specific rules that refer to it. For example the one about using JoinableTaskFactory can be turned off if you don't have a main thread.