consumeOrNull

abstract fun consumeOrNull(): Job?

Returns registered foreground job or null.