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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. 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:
    553
    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:
    977
    tsukimi and stonstad like this.
  3. stonstad

    stonstad

    Joined:
    Jan 19, 2018
    Posts:
    553