close

override fun close()

Cancels all background coroutines owned by this instance. Idempotent — safe to call multiple times.

Calls onClose before cancelling ownJob, giving subclasses a chance to perform synchronous cleanup (e.g. clearing retry maps, releasing resources).

The parentScope passed at construction is not cancelled — only ownJob and its children are stopped.