withParameters

Creates a new context with additional parameters. Does not modify the original context.

Example:

val context = FlippingExecutionContext()
val populated = context.withParameters(
ContextKeys.USER_ID to "123",
ContextKeys.REGION to "EU",
"tier" to "premium"
)

Return

A new FlippingExecutionContext with the added parameters

Parameters

pairs

The parameters to add