Skip to content

Conversation

@dinggeonly
Copy link

Add property [IsDisposed] for CudaContext & CudaRuntimeCompiler,
to make it is possible to know whether the object is disposed.

@kunzmi
Copy link
Owner

kunzmi commented Jun 5, 2021

Hi, sorry for the late answer. Do you know if this property is common for the IDisposible interface? Should we add it to all IDisposible classes?

Cheers,
Michael

@dinggeonly
Copy link
Author

@kunzmi
Q:Should we add it to all IDisposible classes?
A:In my opinion,it's unnecessary to change other calsses,unless we need to know the status of it.

@bjorg
Copy link

bjorg commented Jun 11, 2025

I've never seen or used IsDisposed. Isn't the expectation for Dispose() to be idempotent?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants