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

Add app_config()/app_reader()/app_writer() and prelude to template #52

Merged
merged 1 commit into from
May 28, 2019

Conversation

tony-iqlusion
Copy link
Member

Adds a set of accessors to the application template:

  • app_config(): obtain a config::Reader for reading app config
  • app_reader(): obtain a concurrent read-only lock on app state
  • app_writer(): obtain an exclusive mutable lock on app state

Additionally it adds a prelude module to each application which is useful for easily importing common application-specific types/macros.

Adds a set of accessors to the application template:

- `app_config()`: obtain a `config::Reader` for reading app config
- `app_reader()`: obtain a concurrent read-only lock on app state
- `app_writer()`: obtain an exclusive mutable lock on app state

Additionally it adds a `prelude` module to each application which is
useful for easily importing common application-specific types/macros.
@tony-iqlusion tony-iqlusion merged commit 91cde00 into develop May 28, 2019
@tony-iqlusion tony-iqlusion deleted the app-config-accessors-and-prelude branch May 28, 2019 22:31
@tony-iqlusion tony-iqlusion mentioned this pull request Jul 2, 2019
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

Successfully merging this pull request may close these issues.

None yet

1 participant