<div dir="ltr">Quick follow-up: I found out I could use enif_thread_type() to detect cases where my users would be breaking the documented contract, and error out instead.<br><div class="gmail_extra"><br></div><div class="gmail_extra">-j<br></div></div>