Skip to content

Allow runtime delegator configuration #1

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

Open
tlux opened this issue Jul 28, 2019 · 0 comments
Open

Allow runtime delegator configuration #1

tlux opened this issue Jul 28, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tlux
Copy link
Owner

tlux commented Jul 28, 2019

We should allow to change the delegator at runtime as for some test scenarios this may make sense.

Application.put_env(:my_app, Delx, delegator: MyCustomDelegator)

API Suggestion:

defmodule MyModule do
  use Delx, otp_app: :my_app, runtime: true
end

Compile time delegation (runtime: false) should be the default though as runtime delegation is significantly slower.

@tlux tlux added the enhancement New feature or request label Jul 28, 2019
@tlux tlux self-assigned this Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant