API Reference

Modules

The app for Chaos spawn. Provides all the wrapped spawn functions

Provides supervisor/2 that starts the given module as a supervisor but register with ChaosSpawn as a killable process

Provides worker/2 and worker/3 that wrap around Supervisor.Spec’s worker functions and registered any spawned pids with ChaosSpawn’s process killer

Wraps around GenEvent and provides a pid that get registered with ChaosSpawn’s process killer

Wraps around GenServer and provides servers that get registered with ChaosSpawn’s process killer

Using this module automatically replaces all spawn and spawn_* functions

Provides the common functionality for the Supervisor and Worker modules

Wraps around config keys used by ChaosSpawn

The module provides an example of using the GenServer. The only change required from a normal gen server is in start_link

Example usage of an event

The module provides an example of using the spawn functions. Using the following will automatically replace all the spawn functions with the chaotic ones

Module responsible for waiting and randomly killing processes. The actual process killing is handled by ChaosSpawn.ProcessKiller Is dependent on being given a ChaosSpawn.ProcessWatcher to discover proceses it can kill

Utilities for dealing with lists of pids

Module responsible for killing processes. Called by ChaosSpawn.KillLoop

Provides spawn functions that call Kernel.* methods but also pass the new pid to the ChaosSpawn.ProcessWatcher

GenServer implementation to record pids passed in and return random pids when requested

Top level Supervisor for all ChaosSpawn workers

Wraps all time operations needed by ChaosSpawn