Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsf2 committed Mar 26, 2024
1 parent cbab4be commit 04e1ace
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
<!-- MDOC -->
<!-- INCLUDE -->

`ProcessTree` is a module for navigating the Elixir process ancestry hierachy.
`ProcessTree` is a module for avoiding global state in Elixir applications.

## Motivation

`ProcessTree` was originally developed as a tool for avoiding global state & global references in Elixir applications.

It's common in Elixir apps to rely on global references or global variables for locating application services or configuration parameters. This presents problems when we test our code. We need to work around our global data, for example by setting/resetting environment variables and using `async: false`.

`ProcessTree` solves the problem by localizing data to a particular branch of the Elixir process tree. When testing with ExUnit, each ExUnit test process, and all processes spawned by the test process, can use `get/1` or `get/2` to see their own private copy of the data of interest.
Expand Down

0 comments on commit 04e1ace

Please sign in to comment.