on-internet
← Community

Is static async Task method is thread safety by default?

Stack Overflow ·

The method with signature static async Task is thread safety by default? In general, I assumed that the compiler might create some wrapper that provides "thread-safety". By the way, not on purpose. Doesn't the compiler seeing 'static async' create something similar to what happens with java compilers and the 'synchronized' keyword? Sorry for My English.

Comments

Sign in or sign up to comment and upvote.

No comments yet.