[erlang-questions] Calling (equivalent of) erlang:send_after/3 from a NIF?

Nathaniel Waisbrot nathaniel@REDACTED
Mon Oct 29 20:38:37 CET 2018

Is the idea that your NIF would pause the system for some time and then
send its message and unpause the system? Is the NIF doing work during
this time? If you're looking for enif_send_after my first thought would
be that you should just wrap your NIF in an Erlang process and you NIF
tells that process how and when to wait. But maybe I'm not understanding
what you want this NIF to do.

On Mon, Oct 29, 2018, at 12:48 PM, Roger Lipscombe wrote:
> I'd like to start a timer in my NIF. It should send a message to an
> Erlang process after a delay. There doesn't appear to be an
> enif_send_after.
> Is there any way to do this?
> (Obligatory "yes I know that NIFs are bad, mmkay...").
> Regards,
> Roger.
> _________________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20181029/c4586caa/attachment.htm>

More information about the erlang-questions mailing list