Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Cancellation Tokens for Cloud Save Async Tasks

Discussion in 'Cloud Save' started by Bladiatim, Dec 1, 2022.

  1. Bladiatim

    Bladiatim

    Joined:
    Jan 8, 2018
    Posts:
    3
    Is there a way to cancel async Tasks in the Cloud Save API?

    Normally, a Task allows for a param that includes a CancellationToken, which can be used later to cancel Tasks. However, the Tasks in the Cloud Save API do not have this param. Is it done under the hood? Do I need to catch a certain exception?

    I am trying to timeout LoadAsync() after 10 seconds by using Task.WhenAny() in a situation where the Task took too long to return.
     
  2. Bladiatim

    Bladiatim

    Joined:
    Jan 8, 2018
    Posts:
    3
    Hi, any follow-up on this? Been awhile, would want a reply even if its not possible.
     
  3. MileyUnity

    MileyUnity

    Unity Technologies

    Joined:
    Jan 3, 2020
    Posts:
    92
    Hey there, at this point we don't have any support for this but I'll let the team who's taking over next year know about it at least
     
  4. Bladiatim

    Bladiatim

    Joined:
    Jan 8, 2018
    Posts:
    3
    Gotcha, thanks for the reply. Sorry if I was a bit rude.
     
    MileyUnity likes this.