propagateWaitFunction

Adds wait function information to the message header for propagation.

Return

A new Header instance with function information added if provided.

Parameters

function

The function information to propagate, or null to skip.