I have a device that I want to subscribe to another classes’ callback. In order to be able to unsubscribe that class later, I’d like to pass it as a comparable to the class on subscription. I tried using “this” and “self” but they don’t exist. Is there a way to reference the class instance from within that instance?
You almost got it: it’s Self with an upper case S.
So close
Thanks!