AWSSDK.Tests.TestDriver.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        void Update()
        {
            try
            {
                if (Results != null && Results.Count > 0)
                {
                    try
                    {
                        ResultsText.text += Results.Dequeue();
                        ResultsText.text += Environment.NewLine;
                    }
                    catch
                    {
                        //supress
                    }
                }

                if (mainThread != null && mainThread.Count > 0)
                {
                    var action = mainThread.Dequeue();
                    if (action != null)
                        action.Invoke();
                }
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
        }