Revise ResourceManager mutexing implementation with a decorator pattern #649
Labels
cleanup
General refactoring and/or minor adjustments needed that shouldn't impact overall functionality
good first issue
Good for newcomers
Milestone
Revise work done in #646 to use a decorator pattern instead. Decorator should take a parameter -- the key for which mutex to use.
And then write a new prove-race-proof test for at least one of the methods.
Sample method decorator:
Output:
Note
This does require adding
"experimentalDecorators": true
into the tsconfig.json undercompilerOptions
, otherwise we'll see errors like:The text was updated successfully, but these errors were encountered: