C# Class VS_QuickNavigation.Utils.DeferredAction

Represents a timer which performs an action on the UI thread when time elapses. Rescheduling is supported.
Inheritance: IDisposable
Mostrar archivo Open project: thennequin/VS-QuickNavigation

Public Methods

Method Description
Create ( System.Action action ) : DeferredAction

Creates a new DeferredAction.

Defer ( int milliseconds ) : void

Defers performing the action until after time elapses. Repeated calls will reschedule the action if it has not already been performed.

Dispose ( ) : void

Private Methods

Method Description
DeferredAction ( System.Action action ) : System

Method Details

Create() public static method

Creates a new DeferredAction.
public static Create ( System.Action action ) : DeferredAction
action System.Action /// The action that will be deferred. It is not performed until after is called. ///
return DeferredAction

Defer() public method

Defers performing the action until after time elapses. Repeated calls will reschedule the action if it has not already been performed.
public Defer ( int milliseconds ) : void
milliseconds int /// The amount of time to wait before performing the action. ///
return void

Dispose() public method

public Dispose ( ) : void
return void