The current function definition for the SignalHandler::accumulator
is Fn(&SignalInvocationHint, &mut Value, &Value) -> bool
. The returned bool decides on the control flow of the signal emission. Could we migrate to a Fn(&SignalInvocationHint, &Value, &Value) -> std::ops::ControlFlow<Value, Value>
?
This would allow for nicer bindings in e.g. #214 and I'd like it to be in the same release as #1575 since class_handler
and accumulator
are tightly related.
@sdroege What do you think?