Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question Awaitable -- Main Thread vs Background Tread Question

Discussion in '2023.1 Beta' started by stonstad, May 17, 2023.

  1. stonstad

    stonstad

    Joined:
    Jan 19, 2018
    Posts:
    659
    If I would like to run an async operation off the main unity thread because it has no Unity dependency (e.g. a pure network request, should I

    * Modify my await operation to run on the background thread via synchronization context OR
    * Continue using Tasks OR
    * Do something else?

    Thank you!
     
  2. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    tsukimi and stonstad like this.
  3. stonstad

    stonstad

    Joined:
    Jan 19, 2018
    Posts:
    659