pri_server
Generic Server Behaviour with Priorities
Pri-Server is a OTP/GenServer with priorities and full compatible with original code. Information about gen_server be found at [erlang.org][1].
call(ServerRef, Request, Timeout, Priority) -> Reply
ServerRef, Request, Timeout and Reply - see gen_server:call/3
Priority = pri_server:priority() message's priority
cast(ServerRef, Request, Priority) -> ok
Priority = pri_server:priority() message's priority
Events 'system' and 'EXIT' have high priority handle_info's priority is low
[1]: http://www.erlang.org