We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do_job_run(State, {, Job}) when is_record(State, state), is_function(Job) -> RunFun = fun() -> Job(State#state.alarm_ref, current_date(State)) end, proc_lib:spawn(RunFun); do_job_run(State, {, {M, F, A}}) when is_record(State, state) -> proc_lib:spawn(M, F, A).
If Job is "fun() -> io:format("hello world!") end", the statment "Job(State#state.alarm_ref, current_date(State))" will has badarity error.
The text was updated successfully, but these errors were encountered:
@lintingbin2009 thanks. I will take a look.
Sorry, something went wrong.
You not fix it. do_job_run() function only support MFA function, but not support an anonymous function(like fun() -> io:format("hello world!") end).
This is already fixed in the latest commits.
No branches or pull requests
do_job_run(State, {, Job})
when is_record(State, state), is_function(Job) ->
RunFun = fun() ->
Job(State#state.alarm_ref, current_date(State))
end,
proc_lib:spawn(RunFun);
do_job_run(State, {, {M, F, A}})
when is_record(State, state) ->
proc_lib:spawn(M, F, A).
If Job is "fun() -> io:format("hello world!") end", the statment "Job(State#state.alarm_ref, current_date(State))" will has badarity error.
The text was updated successfully, but these errors were encountered: