286
u.outcome.(*future.FutureImpl[*updatepb.Outcome]).Set(abortOutcome, abortErr)
287
if beforeCommitState == stateProvisionallyCompletedAfterAccepted {
288
>
// If the Update is accepted *and* aborted in the same WFT (because WF was completed in the same WFT),
update.go
289
>
// then its state is ProvisionallyCompletedAfterAccepted here, set by onAcceptance.OnAfterCommit.
290
>
//
291
>
// To prevent a race condition in WaitLifecycleStage, the accepted future
292
>
// has not been set by OnAcceptance earlier, as it must be set *after* the outcome future.
293
>
// Now is the time to set it.
294
>
//
295
>
// Note that the Accepted state is skipped, and it transitions straight to Aborted.
296
>
u.accepted.(*future.FutureImpl[*failurepb.Failure]).Set(nil, nil)
297
>
return
298
>
}
299
300
// If Update was aborted without being accepted,