Skip to content

Examples of using Elixir Processes to store and manage state. Includes lesser known Process Dictionary. Used for presenting at a meetup.

License

Notifications You must be signed in to change notification settings

brainlid/meetup_process_state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProcessState

Examples of using Elixir Processes to store and manage state. Includes lesser known Process Dictionary. I used this for presenting at an Utah Elixir meetup.

Using

Clone or download the repo.

Experiment in IEx and using your preferred editor.

iex -S mix

Example of using the ProcessState.SpawnBasic example.

alias ProcessState.SpawnBasic
pid = SpawnBasic.start(%{counter: 0})
send(pid, {:add, 10})
send(pid, {:add, 1})
send(pid, {:add, 2})

Explanation

I customized Logger output to include some metadata information. Then I use Logger.info to log out information. The logger customization is in config/config.exs.

See the examples directories and single files under the numbered directories.

About

Examples of using Elixir Processes to store and manage state. Includes lesser known Process Dictionary. Used for presenting at a meetup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages