enif_send from a thread after NIF returns

Joel Reymont joelr1@REDACTED
Mon Oct 25 17:51:25 CEST 2010

Is it possible to use enif_send to asynchronously message back to Erlang after the NIF returns?

I'm wondering if enif_thread_create could be used to create a thread that continues running and eventually invokes enif_send.

A practical example of using the above would be asynchronous io.

	Thanks for any guidance, Joel


More information about the erlang-questions mailing list