Search Unity

Question Are async operations in Unity multithreading?

Discussion in 'General Discussion' started by silkmoon18, Jan 16, 2024.

  1. silkmoon18

    silkmoon18

    Joined:
    Dec 13, 2020
    Posts:
    25
    Last edited: Jan 17, 2024
  2. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,698
  3. CodeRonnie

    CodeRonnie

    Joined:
    Oct 2, 2015
    Posts:
    531
  4. silkmoon18

    silkmoon18

    Joined:
    Dec 13, 2020
    Posts:
    25
    So async operations are async tasks instead of coroutines?
     
  5. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,910
    AsyncOperation
    and
    AsyncOperationBase<T>
    are unrelated, the latter doesn't inherit from the former.

    AyncOperation is a yield instruction for scene-loading with coroutines.
    AsyncOperationBase<T>
    is used by the Resource Management package, which is a dependency of packages like Addressables.
     
  6. silkmoon18

    silkmoon18

    Joined:
    Dec 13, 2020
    Posts:
    25
    Thank you all. This solves my problem:
    from Synchronous Workflow | Addressables | 1.20.5 (unity3d.com)
     
    CodeRonnie likes this.