[erlang-questions] Calling (equivalent of) erlang:send_after/3 from a NIF?
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
> Is there any way to do this?
> (Obligatory "yes I know that NIFs are bad, mmkay...").
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions