Skip to content
New issue

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

find a bug #31

Closed
lintingbin opened this issue Aug 19, 2015 · 3 comments
Closed

find a bug #31

lintingbin opened this issue Aug 19, 2015 · 3 comments

Comments

@lintingbin
Copy link

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.

@ericbmerritt
Copy link
Member

@lintingbin2009 thanks. I will take a look.

@lintingbin
Copy link
Author

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).

@saleyn
Copy link
Collaborator

saleyn commented Dec 13, 2022

This is already fixed in the latest commits.

@saleyn saleyn closed this as completed Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants