795
u.outcome.(*future.FutureImpl[*updatepb.Outcome]).Set(res.GetOutcome(), nil)
796
if beforeCommitState == stateProvisionallyCompletedAfterAccepted {
797
>
// If the Update is accepted *and* completed in the same WFT,
update.go
798
>
// then its state is ProvisionallyCompletedAfterAccepted here, set by onAcceptance.OnAfterCommit.
799
>
//
800
>
// To prevent a race condition in WaitLifecycleStage, the accepted future
801
>
// has not been set by OnAcceptance earlier, as it must be set *after* the outcome future.
802
>
// Now is the time to set it.
803
>
//
804
>
// Note that the Accepted state is skipped, and it transitions straight to Completed.
805
>
u.accepted.(*future.FutureImpl[*failurepb.Failure]).Set(nil, nil)
806
>
}
807
u.onComplete()
808
})