Safe Haskell | Trustworthy |
---|
- data MainScheduler
- getMainScheduler :: IO MainScheduler
- runMainScheduler :: IO ()
Documentation
data MainScheduler Source
A scheduler which runs enqueued actions on the main thread.
Scheduler MainScheduler | |
Show v => Show (SchedulerIO MainScheduler v) | Unsafely executes a |
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.