Skip to content

Add stop callback support for resources #735

Description

@lilioid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions