Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename destroy() to release() #756

Open
reillyeon opened this issue Aug 30, 2024 · 1 comment
Open

Rename destroy() to release() #756

reillyeon opened this issue Aug 30, 2024 · 1 comment

Comments

@reillyeon
Copy link
Contributor

Since in many cases a resource continues to exist for a period of time while processing finishes I think it will be less confusing to developers to name these methods release().

@bbernhar
Copy link

bbernhar commented Sep 5, 2024

I'm unsure how WebNN's "destroy()" meaning differs from WebGPU's "destroy()" to justify a new name. Web developers should be familiar with "destroy" meaning delayed destruction. I could see release() being specifically useful for interop to mean "expire".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants