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

Dispatch operator events in a task #2

Closed
coryodaniel opened this issue Dec 20, 2018 · 1 comment
Closed

Dispatch operator events in a task #2

coryodaniel opened this issue Dec 20, 2018 · 1 comment

Comments

@coryodaniel
Copy link
Owner

Consider dispatch operator events in a task. We expect the operator to handle its own errors, so dispatch in a task could make it extra speedy.

defmodule Bonny.TestTaskSupervisor do
  def async_nolink(_, fun), do: fun.()
  def start_child(_, fun), do: fun.()
end

@task_supervisor Application.get_env(:bonny, :task_supervisor) || Task.Supervisor
@coryodaniel
Copy link
Owner Author

Related: #5 #4 #2

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

1 participant