Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

OnCrash

Convinence module to wrap a monitor and call a function when a process ends. Useful to setp cleanup tasks on process shutdown.

worker=spawn(fn->OnCrash.call(fn->cleanup()end)do_the_work()end)

Installation

If available in Hex, the package can be installed by adding oncrash to your list of dependencies in mix.exs:

defdepsdo[{:oncrash,"~> 0.1.0"}]end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/oncrash.

About

Registering crash callbacks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages