异步锁

using ( new AsyncLock().LockAsync())
{
                //protected code
}

同步锁

using ( new AsyncLock().Lock())
{
      //protected code
}

results matching ""

    No results matching ""