morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::reactive::QueryOptions Struct Reference

How a Query refreshes besides key changes, and how long it lets a key settle. More...

#include <control.hpp>

Public Attributes

Scheduler * scheduler = nullptr
 Runs the timed refresh and the debounce; required when either is positive. Borrowed: it must outlive the query.
std::chrono::milliseconds refreshEvery {0}
 Re-fetch the current key this long after each call is issued, unless a call is then in flight; zero means no timed refresh, and a negative value is refused.
std::chrono::milliseconds debounce {0}
 Fetch a changed key only once it has been stable this long; zero fetches at once, and a negative value is refused. The first key and a change to idle apply at once.

Detailed Description

How a Query refreshes besides key changes, and how long it lets a key settle.

Definition at line 130 of file control.hpp.

Member Data Documentation

◆ scheduler

Scheduler* morph::reactive::QueryOptions::scheduler = nullptr

Runs the timed refresh and the debounce; required when either is positive. Borrowed: it must outlive the query.

Definition at line 133 of file control.hpp.

◆ refreshEvery

std::chrono::milliseconds morph::reactive::QueryOptions::refreshEvery {0}

Re-fetch the current key this long after each call is issued, unless a call is then in flight; zero means no timed refresh, and a negative value is refused.

Definition at line 136 of file control.hpp.

◆ debounce

std::chrono::milliseconds morph::reactive::QueryOptions::debounce {0}

Fetch a changed key only once it has been stable this long; zero fetches at once, and a negative value is refused. The first key and a change to idle apply at once.

Definition at line 139 of file control.hpp.


The documentation for this struct was generated from the following file: