public static async Task <bool> TryEnter(AsyncLockObject obj, TimeSpan timeout) { return(await obj.Lock(timeout)); }
public static async Task <bool> TryEnter(AsyncLockObject obj) { return(await obj.Lock(TimeSpan.FromMilliseconds(5))); }
public static async Task Enter(AsyncLockObject obj) { await obj.Lock(); }