Created
April 30, 2019 17:40
-
-
Save alistairjevans/93c3607f2cecabfbe162690434f568f2 to your computer and use it in GitHub Desktop.
Using a lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (await LockProvider.AcquireLock(id)) | |
{ | |
// Do some work | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment