The erl_nif interface supports scheduling IO with the erlang VM through the enif_select() function. However, to use this safely, it is necessary for resources to support receiving a stop() callback (shown in the ErlNifResourceTypeInit struct). This callback is currently not one of the callbacks supported by the Resource trait and should be added.
The erl_nif interface supports scheduling IO with the erlang VM through the enif_select() function. However, to use this safely, it is necessary for resources to support receiving a
stop()callback (shown in the ErlNifResourceTypeInit struct). This callback is currently not one of the callbacks supported by the Resource trait and should be added.