code_junkie

Is it possible to build work queues in Erlang?

Nov 12th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. receive
  2. {important, Msg} ->
  3. handle(Msg)
  4. after 0 ->
  5. ok
  6. end,
  7. receive
  8. OtherMsg ->
  9. handle(Msg)
  10. end
  11.  
  12. receive
  13. {important, Msg} ->
  14. handle(Msg);
  15. OtherMsg ->
  16. handle(Msg)
  17. end
Add Comment
Please, Sign In to add comment