Skip to content

Commit

Permalink
Add deprecated directive for add_variants_async
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com>
  • Loading branch information
JeanChristopheMorinPerso authored Mar 8, 2024
1 parent 2251de8 commit b0309eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rez/package_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ def add_variants_async(self, variants):
This method is called when a context is created or sourced. Variants
are then added to the cache in a separate process.
This method is left for backwards compatibility.
.. deprecated:: 3.1.0
Use :method:`add_variants` instead.
"""
return self.add_variants(variants, package_cache_async=True)

Expand Down

0 comments on commit b0309eb

Please sign in to comment.