projects/Extant/Threading/ThreadRun.cs
/// <summary>
/// Adds a task to be executed during this object's main thread.
/// </summary>
/// <param name="action">Task to be run on this object's main thread.</param>
Adds a task to be executed during this object's main thread.
Adds a task to be executed during this object ' s main thread .
public void Invoke(Action action)
        {
            if (!_isInvokable)
                throw InvokeNotSupportedException;
            lock (_invokedLock)
            {
                _invokedActions.Enqueue(action);
            }
        }
public void Invoke ( Action action ) { if ( ! _isInvokable ) throw InvokeNotSupportedException ; lock ( _invokedLock ) { _invokedActions . Enqueue ( action ) ; } }
Adds a task to be executed during this object's main thread.
Adds a task to be executed during this object ' s main thread .
action
Action
Task to be run on this object's main thread.
Task to be run on this object ' s main thread .