niknaks.mechanisms

An assortment of mechanisms

Members

Aliases

VerdictProviderDelegate
alias VerdictProviderDelegate = bool delegate()

A verdict-providing delegate

VerdictProviderFunction
alias VerdictProviderFunction = bool function()

A verdict-providing function

Classes

Delay
class Delay

A mechanism that consumes a function and calls it at a regular interval, exiting if it returns a true verdict within a certain time limit but throwing an exception if it never returned a true verdict in said time window and the time was exceeded

DelayTimeoutException
class DelayTimeoutException

An exception thrown when a Delay mechanism times out

Prompter
class Prompter

A prompting mechanism which can be filled up with questions and a file-based source to read answers in from and associate with their original respective questions

Functions

alwaysFalseFunc
bool alwaysFalseFunc()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Prompt
struct Prompt

A user-defined prompt

Meta

Authors

Tristan Brice Velloza Kildaire (deavmi)