WaitingChainTail
class WaitingChainTail(val stage: CommandStage, val function: NamedFunctionInfoData) : WaitStrategy.FunctionMaterialized
Represents the tail (final) stage in a waiting chain. This class encapsulates the final stage and function criteria that a waiting chain should wait for after completing the main processing stages.
Parameters
stage
The command processing stage to wait for.
function
The function criteria for the stage (may be empty for non-function stages).
Functions
Link copied to clipboard
Evaluates whether notification is required for the given processing stage. This allows wait strategies to filter notifications based on their waiting criteria.
Evaluates whether the wait signal should trigger a notification. Allows for complex filtering logic based on signal properties like stage, function info, error status, etc.
Link copied to clipboard
判断是否应该传播指定的消息
Link copied to clipboard
fun CommandStage.toWaitingChainTail(function: NamedFunctionInfoData = NamedFunctionInfoData.EMPTY): WaitingChainTail