Reach.OTP.DeadReply (Reach v2.2.0)

Copy Markdown View Source

Detects GenServer.call sites where the reply value is discarded.

Summary

Functions

Finds GenServer.call sites where the reply value is discarded.

Functions

find_dead_replies(nodes, opts \\ [])

@spec find_dead_replies(
  [Reach.IR.Node.t()],
  keyword()
) :: [map()]

Finds GenServer.call sites where the reply value is discarded.

A discarded reply means the server computes and sends a value that nobody uses — the call could be a cast instead, or the handle_call could return a cheaper reply.