[erlang-questions] ets:update_counter/3 optimal settings

Max Lapshin max.lapshin@REDACTED
Fri Jun 9 15:55:22 CEST 2017


If you are 100% sure that you can give such negative decrement that will be
always bigger than you value.

Not very good way to program, but you can get atomic "read-and-reset"
counter that can be ok for example for counters like network bytes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170609/082853cf/attachment.htm>


More information about the erlang-questions mailing list