Bonus: handle_continue/2 is also useful any time you want to do some additional work after replying to a message, for example in a handle_call/3 callback.
I think that could be a useful pattern for some GenServer’s
handle_continue/2 is very new and was just recently added to OTP. It replaces the old ‘throw yourself a message’ pattern more reliably as it runs ‘before’ other possible pending messages, which makes it fantastic for handling after an init/1 callback.
@tangui It needs to be able to hash any Erlang term, that’s the only requirement. I picked murmur because it did this out of the box (although using :erlang.term_to_binary should make any hash function usable).
If you know something better (faster) then feel free to submit a PR