You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

message_future.go 362 B

4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819
  1. package common
  2. import "github.com/opentrx/seata-golang/v2/pkg/apis"
  3. // MessageFuture ...
  4. type MessageFuture struct {
  5. ID int64
  6. Err error
  7. Response interface{}
  8. Done chan bool
  9. }
  10. // NewMessageFuture ...
  11. func NewMessageFuture(message *apis.BranchMessage) *MessageFuture {
  12. return &MessageFuture{
  13. ID: message.ID,
  14. Done: make(chan bool),
  15. }
  16. }