notifyStep

abstract fun notifyStep(channel: String, payload: String? = null): TransactionStep<Unit>

Generates a deferred notification step for use within a TransactionPlan.

Similar to notify, but does not execute immediately. Instead, it returns a TransactionStep that can be added to a TransactionPlan for atomic execution.

Return

A TransactionStep representing the notify operation.

Parameters

channel

Name of the channel to send the notification to.

payload

Optional payload string. null sends no payload.