Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Allow runtime delegator configuration #1

@tlux

Description

@tlux

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions