Erlang Task Queue Behaviour