We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现在的并发是如下写法,其中用数字0、1、2……来表达顺序依赖:
saga := dtmcli.NewSaga(DtmServer, shortuuid.New()). Add(Busi+"/CanRollback1", Busi+"/CanRollback1Revert", req). Add(Busi+"/CanRollback2", Busi+"/CanRollback2Revert", req). Add(Busi+"/UnRollback1", "", req). Add(Busi+"/UnRollback2", "", req). EnableConcurrent(). AddBranchOrder(2, []int{0, 1}). // 指定step 2,需要在0,1完成后执行 AddBranchOrder(3, []int{0, 1}) // 指定step 3,需要在0,1完成后执行
期望支持如下表达式,以更直观的 Concurrent 来表达并行:
saga := dtmcli.NewSaga(DtmServer, shortuuid.New()). Concurrent( Add(Busi+"/CanRollback1", Busi+"/CanRollback1Revert", req), Add(Busi+"/CanRollback2", Busi+"/CanRollback2Revert", req) ). Add(Busi+"/UnRollback1", "", req). Add(Busi+"/UnRollback2", "", req)
The text was updated successfully, but these errors were encountered:
欢迎pr
Sorry, something went wrong.
No branches or pull requests
现在的并发是如下写法,其中用数字0、1、2……来表达顺序依赖:
期望支持如下表达式,以更直观的 Concurrent 来表达并行:
The text was updated successfully, but these errors were encountered: