# SingleHandler



```
    /// <summary>
    /// 单线程处理
    /// </summary>
    /// <returns></returns>
    protected virtual bool SingleHandler() 
    {
        try
        {
            while (SingleCallQueue.TryDequeue(out Action action))
            {
                action();
            }
        }
        catch (Exception ex)
        {
            Debug.LogError("单线程异常:" + ex);
        }
        return IsRunServer;
    }
```
