IRefCountedObject interface is used in some cases with ref counted objects.

Implementations that can be used for it instead of doing it manually:

  • FRefCountedObject
  • FThreadSafeRefCountedObject
  • TRefCountingMixin

(these don’t implement the interface, but you can use these as the implementation by calling from your functions)