Hey, so I have this problem with suspending threads not being killed upon object deletion (by garbage collector I presume)
I noticed that we had this disposable
interface available, but I tested it and it doesn’t seem to be really useful to implement.
disposable_test := class(disposable):
Dispose<override>():void=
Print("DISPOSED") # Never called
# Inside some creative_device
OnBegin<override>()<suspends>:void=
A := disposable_test{}
Sleep(5.0)
# <- Garbage collected
Could we have some sort of function that would allow us to call clean-up code upon object deletion ?