I have a function that does some logic then runs a success callback function or a fail callback function.
Here is the code:
some_function() ->
ArgumentsForCallback = [],
check_some_condition(Input, fun success_callback/1, fun fail_callback/1).
How do I pass ArgumentsForCallback to the callbacks?
check_some_condition? Does it call the callback functions with 0 arguments?check_some_conditionand then call callback functions with them from insidecheck_some_conditionfunction?