Receiving messages from an external process without sending?
seivan opened this issue · 0 comments
seivan commented
Does Porcelain support receiving messages from an external process without triggering a response from Elixir first?
The reason I ask, is because i'm using raw Ports right now and the external process should be constantly calling my handle_info/2
as the external process is essentially a while loop that just spams to STDOUT
.
I have limited debugging tight now, but it seems to be sleeping between calls from Elixir. I added a timestamp and a counter to figure out if it was buffering or just outright sleeping and the latter seems more probable as the timestamps are exact of the external process receiving a message and the counter is just incremented from last time even though it's incremented in a while loop.