A timeout manager
Moduletime-manager-0.2.3Haskell2010
System.TimeManager
- 4 types
- 14 values
- Packagetime-manager-0.2.3
- Exports18
- LanguageHaskell2010
- LicenceMIT
- SourceTimeManager.hs
Types
4 declarationsNo manager.
An action to be performed on timeout.
A handle used by a timeout manager.
Manager
5 declarationsCreating timeout manager which works every N micro seconds where N is the first argument.
Stopping timeout manager with onTimeout fired.
Killing timeout manager immediately without firing onTimeout.
Call the inner function with a timeout manager. stopManager is used after that.
Call the inner function with a timeout manager. killManager is used after that.
Registering a timeout action
2 declarationsRegistering a timeout action and unregister its handle when the body action is finished. Nothing is returned on timeout.
Registering a timeout action of killing this thread and unregister its handle when the body action is killed or finished.
Control timeout
3 declarationsSetting the state to active. Manager turns active to inactive repeatedly.
Setting the state to paused. Manager does not change the value.
Setting the paused state to active. This is an alias to tickle.
Low level
3 declarationsRegistering a timeout action.
Registering a timeout action of killing this thread. TimeoutThread is thrown to the thread which called this function on timeout. Catch TimeoutThread if you don't want to leak the asynchronous exception to GHC RTS.
Exceptions
1 declarationThe asynchronous exception thrown if a thread is registered via registerKillThread.
Instances2Show, Exception
Show TimeoutThreadDefined in time-manager-0.2.3 · System.TimeManagerException TimeoutThreadDefined in time-manager-0.2.3 · System.TimeManager