Search Unity

[SOLVED] how to get concurrent version of nativehashmap [error]

Discussion in 'Entity Component System' started by Mr-Mechanical, Jun 13, 2020.

  1. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    this is the error I get:

    'NativeHashMap<int, Creator.SweepAndPruneSystem.Pair>' does not contain a definition for 'Concurrent' and no accessible extension method 'Concurrent' accepting a first argument of type 'NativeHashMap<int, Creator.SweepAndPruneSystem.Pair>' could be found (are you missing a using directive or an assembly reference?)

    Thank you for any help.
     
  2. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    it's asparallelwriter the docs are outdated
     
    vectorized-runner likes this.
  3. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685