Mercurial > gui
view timer.ur @ 14:0827320b0f04
Write calendarCtl in terms of a source with a listener.
author | Karn Kallio <kkallio@eka> |
---|---|
date | Fri, 05 Aug 2011 18:55:24 -0430 |
parents | 37eefd0a2ed4 |
children |
line wrap: on
line source
type t = source bool fun create r = b <- source False; spawn (sleep r.Milliseconds; b <- get b; if b then return () else r.Action); return b fun cancel b = set b True