SetReleaser associates the given releaser to the resources. The releaser will be called once coresponding resources released. Calling SetReleaser with nil will clear the releaser.

This will panic if a releaser already present or coresponding resource is already released. Releaser should be cleared first before assigned a new one.

SetReleaser is referenced in 0 repositories