Skip to content

Commit

Permalink
Rephrase description of {continue,_}
Browse files Browse the repository at this point in the history
  • Loading branch information
RaimoNiskanen committed Jun 3, 2024
1 parent 678f827 commit 2783bdd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/stdlib/src/gen_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@
two garbage collections (when hibernating and shortly after waking up)
and is not something you want to do between each call to a busy server.
If the `gen_server` process needs to perform an action immediately after
If the `gen_server` process needs to perform an action after
initialization or to break the execution of a callback into multiple steps,
it can return `{continue,Continue}` in place of
the time-out or hibernation value, which will immediately invoke
the [`Module:handle_continue/2`](`c:handle_continue/2`) callback.
it can return `{continue, Continue}` in place of
the time-out or hibernation value, which will invoke
the [`Module:handle_continue/2`](`c:handle_continue/2`) callback,
before receiving any external message / request.
If the `gen_server` process terminates, e.g. as a result of a function
in the callback module returning `{stop,Reason,NewState}`,
Expand Down

0 comments on commit 2783bdd

Please sign in to comment.