Show / Hide Table of Contents

Class FuncExtensions

Useful extension methods for System.Func<TResult>.

Inheritance
Object
FuncExtensions
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM
Assembly: IRM.dll
Syntax
public static class FuncExtensions

Methods

DebounceAsync(Func<Task>, Int32)

Debounce an System.Func<TResult> by resetting the timeout every time it is invoked, effectevly only executing the Func after timeout has fully elapsed.

Declaration
public static Func<Task> DebounceAsync(this Func<Task> func, int milliseconds = 300)
Parameters
System.Func<System.Threading.Tasks.Task> func

The System.Func<TResult> to execute when debounce event fires.

System.Int32 milliseconds

The timeout in milliseconds.

Returns
System.Func<System.Threading.Tasks.Task>

A debounced func to invoke instead of the supplied Func.

Back to top Generated by DocFX