Skip to content

Commit

Permalink
potential new callback sig
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Feb 7, 2024
1 parent 985dfe4 commit e0c9a45
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ra_machine.erl
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,20 @@

-callback init_aux(Name :: atom()) -> term().

-callback handle_aux(ra_server:ra_state(),
{call, From :: from()} | cast,
Command :: term(),
AuxState,
State) ->
{reply, Reply :: term(), AuxState, State} |
{reply, Reply :: term(), AuxState, State,
[{monitor, process, aux, pid()}]} |
{no_reply, AuxState, State} |
{no_reply, AuxState, State,
[{monitor, process, aux, pid()}]}
when AuxState :: term(),
State :: ra_aux:state().

-callback handle_aux(ra_server:ra_state(),
{call, From :: from()} | cast,
Command :: term(),
Expand Down

0 comments on commit e0c9a45

Please sign in to comment.