TimedLock icon indicating copy to clipboard operation
TimedLock copied to clipboard

How to define my own lock block ?

Open kingeaglewang opened this issue 4 years ago • 0 comments

My way to use lock is like following

lock (obj) { DoIt(); }

How can I use your project to do the same thing? I have read the example, but I can't figure out how to use.

try { TimedLock timeLock = TimedLock.Lock(obj); //Thread safe operations timeLock.Dispose(); }

Thanks for helping me.

kingeaglewang avatar Aug 27 '20 03:08 kingeaglewang