Skip to content

Instantly share code, notes, and snippets.

@alistairjevans
Created April 30, 2019 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairjevans/93c3607f2cecabfbe162690434f568f2 to your computer and use it in GitHub Desktop.
Save alistairjevans/93c3607f2cecabfbe162690434f568f2 to your computer and use it in GitHub Desktop.
Using a lock
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