consumeOrNull

open override fun consumeOrNull(): Job

Returns registered foreground job or null.