close

abstract fun close()

Closes the emitter: cancels all coroutines and marks it as closed. Idempotent — safe to call multiple times.