Skip to main content

WithSignalID

Gets a new context with SignalID set.

def WithSignalID(
ctx: context.Context,
signalID: string
) - > context.Context

WithSignalID gets a new context with SignalID set.

Parameters

NameTypeDescription
ctxcontext.ContextThe parent context to which the signal ID will be added.
signalIDstringThe unique identifier to associate with the context.

Returns

TypeDescription
context.ContextA new context derived from the input context, with the provided signal ID associated.