delay
Models ยป Delay models

Next:<delay> ( model timeout -- delay )


Vocabulary
models.delay

Class description
Delay models have the same value as their underlying model, however the value only changes after a timer expires. If the underlying model's value changes again before the timer expires, the timer restarts. Delay models are constructed by <delay>.

Examples
The following code displays a sliders and a label which is updated half a second after the slider stops changing:
USING: models models.delay models.arrow models.range ui ui.gadgets ui.gadgets.labels ui.gadgets.sliders ui.gadgets.panes math.parser calendar ; <pile> 0 10 0 100 1 <range> [ horizontal <slider> add-gadget ] [ 1/2 seconds <delay> [ unparse ] <arrow> <label-control> add-gadget ] bi "Test" open-window


Definition


Methods