C# Class WinRTXamlToolkit.Tools.EventThrottlerMultiThreaded

Defines an object that can throttle tasks in such a way that if a task is already being processed when new tasks are queued - only the last one of these tasks will be executed when the currently running task is done and the other ones will be skipped. Very useful in many UI scenarios.
Written by Servy as an answer to this question on Stack Overflow: http://stackoverflow.com/questions/20081996/is-there-such-a-synchronization-tool-as-single-item-sized-async-task-buffer
Show file Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
Run ( Func action ) : void

Runs the specified async action through the throttle.

Method Details

Run() public method

Runs the specified async action through the throttle.
public Run ( Func action ) : void
action Func The async action.
return void