Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-534

[Bug]: Task.WaitAll Upload or Download freeze

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      When use Task.WaitAll(RealmInstance.GetSession().WaitForDownloadAsync(),RealmInstance.GetSession().WaitForUploadAsync());

      They freeze and never return.

      I'm not sure if it's a bug or bad use.

      Repro steps

      Call Task.WaitAll(RealmInstance.GetSession().WaitForDownloadAsync(),RealmInstance.GetSession().WaitForUploadAsync());
      not work, freeze , only calling one after other works.

      await RealmInstance.GetSession().WaitForDownloadAsync();
      await RealmInstance.GetSession().WaitForUploadAsync();

      Version

      10.3.0

      What SDK flavour are you using?

      MongoDB Realm (i.e. Sync, auth, functions)

      What type of application is this?

      Xamarin

      Client OS and version

      Windows 10

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: