uni-util-2.3.0.1: Utilities for the uniform workbench

Safe HaskellNone

Util.Delayer

Description

Delayers handle delaying of actions; the main purpose is to delay graph redrawing actions during complex updates.

Synopsis

Documentation

class HasDelayer object whereSource

Methods

toDelayer :: object -> DelayerSource

Instances

delay :: HasDelayer object => object -> IO a -> IO aSource

carry out the given action preventing the Delayer from doing anything.

cancelDelayedAct :: Delayer -> DelayedAction -> IO ()Source

If this DelayedAction is queued, remove it from the queue.

class HasAddDelayer eventSource whereSource

Instances of HasAddDelayer are event sources to which you can attach a delayer, to indicate you are currently not interested in events.

Methods

addDelayer :: Delayer -> eventSource -> eventSourceSource

class HasAddDelayerIO eventSource whereSource

Like HasAddDelayer, but allows an IO action.

Methods

addDelayerIO :: Delayer -> eventSource -> IO eventSourceSource

Instances