PeriodicUpdater:
Filter:
Connection/Classes (extension) | Connection

PeriodicUpdater
ExtensionExtension

Periodically notify on value changes.

Description

Periodically poll a value, and update dependants when the value changes.

Class Methods

.new

Arguments:

object

Object to poll.

method

Method of the object that provides the value.

freq

Polling frequency.

delegate

An object on which to call .changed - if none provided, the PeriodicUpdater itself will signal it's dependants.

clock

Clock on which to perform the updates (UI interaction requires AppClock)

Instance Methods

.pull

Immediately query the value and send updates if it has changed.

.freq

Get or set the update frequency.

.start

.stop

Start or stop updates.

Examples