consume

abstract fun consume(): Job

Returns registered foreground job or throws.