|
|
|
@ -1081,7 +1081,7 @@ namespace Apewer |
|
|
|
/// <param name="text">要锁定的文本。</param>
|
|
|
|
/// <param name="inLock">要在锁中执行的函数。</param>
|
|
|
|
/// <exception cref="ArgumentNullException"></exception>
|
|
|
|
public static void Lock<T>(this string text, Action inLock) |
|
|
|
public static void Lock(this string text, Action inLock) |
|
|
|
{ |
|
|
|
if (inLock == null) throw new ArgumentNullException(nameof(inLock)); |
|
|
|
_locker.InLock(text, inLock); |
|
|
|
|