ktor-utils / io.ktor.util.pipeline / PipelineContext

PipelineContext

interface PipelineContext<TSubject : Any, TContext : Any> : CoroutineScope

Represents running execution of a pipeline

Properties

context

abstract val context: TContext

Object representing context in which pipeline executes

subject

abstract val subject: TSubject

Subject of this pipeline execution that goes along the pipeline

Functions

finish

abstract fun finish(): Unit

Finishes current pipeline execution

proceed

abstract suspend fun proceed(): TSubject

Continues execution of the pipeline with the same subject

proceedWith

abstract suspend fun proceedWith(subject: TSubject): TSubject

Continues execution of the pipeline with the given subject