Search Unity

Async await work on mobile? (android, ios)

Discussion in 'Scripting' started by StrongCube, Oct 7, 2019.

  1. StrongCube

    StrongCube

    Joined:
    Nov 22, 2016
    Posts:
    50
    Hey, everybody. Did not find it in the documentation and there is no way to check it now.

    async await Task.Delay works on android and ios?
     
  2. Antistone

    Antistone

    Joined:
    Feb 22, 2014
    Posts:
    2,836
    Task.Delay is not a Unity-specific function, it's part of general C#.

    I've never personally tried it on mobile, but if the "async" keyword is supported at all, then Task.Delay seems about as safe as you can get. I would be exceedingly surprised if it had any platform-specific issues.