25 if ( !otherDecisions.empty() ) {
29 if ( !systemState->tokensAwaitingTimer.empty() ) {
33 if ( !systemState->tokensAwaitingReadyEvent.empty() ) {
37 if ( !systemState->tokensAwaitingCompletionEvent.empty() ) {
45 for (
auto& [token_ptr, decision ] : messageDeliveryDecisions ) {
46 if(
auto token = token_ptr.lock() ) {
49 return std::make_shared<ErrorEvent>(token.get());
54 for (
auto& [token,message_ptr] : systemState->messageAwaitingDelivery ) {
56 return std::make_shared<ErrorEvent>(token);