Search Unity

UWP awaits getting deadlock after Unity upgrade

Discussion in 'Windows' started by waltran, Aug 30, 2021.

  1. waltran

    waltran

    Joined:
    Feb 23, 2017
    Posts:
    36
    Hello
    I'm trying upgrade a project from Unity 5.6.3 to Unity 2017.4.40f1.
    Project is working as expected in Unity 5.6 build but when i get a build from Unity 2017 blocking async method calls causes deadlocks. I know async code shouldn't be used in a blocking way but then again I don't understand why they work in Unity 5.6? And if possible how that behaviour can be replicated in Unity 2017 build?
    PS: adding
    .ConfigureAwait(false);
    to await lines seems like working but I haven't tried it for every call yet.

    thanks