[erlang-questions] prim_inet:async_accept/2

Nicolas Thauvin nthauvin@REDACTED
Tue Feb 17 16:49:33 CET 2009


Hello,

  prim_inet:async_accept/2 looks like a very interesting function to use in  
a gen_server. However, it is not documented.
  Several examples on the Internet already use it (like  
http://www.trapexit.org/Building_a_Non-blocking_TCP_server_using_OTP_principles).

Questions are:
- Why isn't it wrapped in gen_tcp ?
- Is it safe to use it (will it be obsolete in the next release ?) ?

Cheers,

-- Nicolas







More information about the erlang-questions mailing list