RxHaskell-0.2: Reactive Extensions for Haskell

Safe HaskellTrustworthy




data MainScheduler Source

A scheduler which runs enqueued actions on the main thread.


Scheduler MainScheduler 
Show v => Show (SchedulerIO MainScheduler v)

Unsafely executes a SchedulerIO action and shows the result. This is for DEBUGGING PURPOSES ONLY.

getMainScheduler :: IO MainSchedulerSource

Returns a scheduler representing the main thread.

Note that runMainScheduler must be called for enqueued actions to actually execute.

runMainScheduler :: IO ()Source

Runs the main scheduler indefinitely using the current thread. The current thread will be bound if possible.