Microsoft.Languages.Editor.Tasks.IdleTimeAsyncTask.DoTaskOnIdle C# (CSharp) Method

DoTaskOnIdle() public method

Run task on next idle slot
public DoTaskOnIdle ( ) : void
return void
        public void DoTaskOnIdle() {
            DoTaskOnIdle(0);
        }

Same methods

IdleTimeAsyncTask::DoTaskOnIdle ( Func taskAction, Action callbackAction, Action cancelAction, object tag = null ) : void
IdleTimeAsyncTask::DoTaskOnIdle ( int msDelay ) : void

Usage Example

示例#1
0
        protected OutlineRegionBuilder(ITextBuffer textBuffer, IEditorShell editorShell) {
            CurrentRegions = new OutlineRegionCollection(0);

            TextBuffer = textBuffer;
            TextBuffer.Changed += OnTextBufferChanged;

            BackgroundTask = new IdleTimeAsyncTask(TaskAction, MainThreadAction, editorShell);
            if (IsEnabled) {
                BackgroundTask.DoTaskOnIdle(300);
            }
        }
All Usage Examples Of Microsoft.Languages.Editor.Tasks.IdleTimeAsyncTask::DoTaskOnIdle