About GC in elixir

I have a question. Is it possible to start GC (garbage collection) manually in Elixir?

:erlang.garbage_collect/0 will trigger GC for the current process IIRC.

2 Likes

Thank you very much.

Depending on why you want to do this, hibernate might also be useful: http://erlang.org/doc/man/erlang.html#hibernate-3

4 Likes

Thank you very much.