From e0c9a45e5992fa7cbe3e257a61aa2f082aa826ae Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Wed, 7 Feb 2024 12:23:23 +0000 Subject: [PATCH] potential new callback sig --- src/ra_machine.erl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ra_machine.erl b/src/ra_machine.erl index ba54092a..3213272d 100644 --- a/src/ra_machine.erl +++ b/src/ra_machine.erl @@ -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(),