Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Resource tracking nif
C Erlang
tree: 97dc0bfb61

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
c_src
ebin
priv
src
Makefile
README
rebar.config

README

Resource tracking 
=================

resource:notify_when_destroyed(Pid, Message) -> NifRef.

notify_when_destroyed creates a nif resource that can be used as a reference
to any kind of external data. When resource is destroyed, 
beacuse it is not referenced any where, the destructor callback will
send the message to Pid.

For example, it could be used for wrapping
file handles. The file is then closed automatically when there are no one
referencing the file, there by garbage collect files.
Something went wrong with that request. Please try again.