Skip to content

Commit

Permalink
potential new callback sig
Browse files Browse the repository at this point in the history
readme.md
  • Loading branch information
kjnilsson committed Feb 7, 2024
1 parent 985dfe4 commit ff53c03
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ Ra attempts to follow [Semantic Versioning](https://semver.org/).

The modules that form part of the public API are:
* `ra`
* `ra_machine`
* `ra_machine` (behaviour callbacks only)
* `ra_system`
* `ra_counters`
* `ra_leaderboard`
Expand Down
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 ff53c03

Please sign in to comment.