Table of Contents

Method RemoveTimeout

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

RemoveTimeout(object)

Cancels all timeout occurrences associated with a previously returned token.

bool RemoveTimeout(object token)

Parameters

token object

The token returned by AddTimeout(TimeSpan, Func<bool>).

Returns

bool

true if at least one queued occurrence was removed or a cancellation request was recorded for at least one active occurrence; otherwise, false.

Remarks

A matching callback that is already executing is not interrupted, but it will not be rescheduled if it returns true.