In erlang, you can create a pid that does not match the process. An example using this can be found here in Erlang's βExploring Youβ section.
pid(0,250,0).
Is there a way to do the same in an elixir? The closure I have at the moment is to create a process that exits immediately and uses this pid.
fake_pid = Process.spawn(fn -> end)
These are seams, like a bit of a hack, and I'm not sure if there can be some slight differences between a never-created pid and a dead pid.
source
share