I'm new to elixir, experimenting around in iex
shell to learn, and I have be a noob question.
For simplicity let's call the current shell session process the "main process".
I spawn a child process, write a receive
block in "main process" to listen for child message. When hit enter, it'll put the "main process" into a waiting
status. This basically freezes the "main process", making it irresponsive to further input.
Many times I got stuck in this status by mistake. If I mess up I need to shutdown the shell and start over again, losing all the states and setups.
My question: is there a way to withdraw/invalidate/break out of a working receive
block?
Or maybe is there a way that I can start another session, without killing the previous one, then send some message to it to unfreeze it?