Skip to content

Simplify Watcher application config syntax #10

Description

@sikanrong

So currently the watcher configuration line looks rather like this:

config :ecstatic, :watchers, fn() -> PhysicsSim.Watchers.watchers end

And I think it might be much simpler to represent it like this:

config :ecstatic, :watchers, [PhysicsSim.Watchers]

...and then internally have Ecstatic concatenate all of the watchers from each module together (by calling watchers/0 on each)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions