Table of Contents

Constructor SmoothAcceleratingTimeout

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

SmoothAcceleratingTimeout(TimeSpan, TimeSpan, double, Func<bool>)

Creates a new instance of the smooth acceleration timeout.

public SmoothAcceleratingTimeout(TimeSpan initialDelay, TimeSpan minDelay, double decayFactor, Func<bool> callback)

Parameters

initialDelay TimeSpan

Delay before first tick, the longest it will ever take

minDelay TimeSpan

The fastest the timer can get no matter how long it runs

decayFactor double

Controls how fast the timer accelerates

callback Func<bool>

Method to call when timer ticks