/gen_server2

Primary LanguageErlangApache License 2.0Apache-2.0

Build Status

gen_server2

An OTP non-compatible gen_server

Build

$ rebar3 compile

Not implemented

  • timeouts
  • handle_continue -- just a sugar. but we can easily support it
  • hibernation
  • registered processes - Need to choose between gpoc/pg2/global/syn/whatever
  • enter_loop there is no good reason to us it. There is no any popular open-source library that uses it. Also requires proc_lib which is not good.
  • distibuted stuff multicall and abcast shoud be done within registry
cloc src/gen_server2.erl
       1 text file.
       1 unique file.
       0 files ignored.

github.com/AlDanial/cloc v 1.80  T=0.01 s (89.6 files/s, 10488.4 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Erlang                           1             22              1             94
-------------------------------------------------------------------------------