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 379 B

5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
123456789101112131415161718192021
  1. package getty
  2. import (
  3. "github.com/transaction-wg/seata-golang/pkg/base/protocal"
  4. )
  5. // MessageFuture ...
  6. type MessageFuture struct {
  7. ID int32
  8. Err error
  9. Response interface{}
  10. Done chan bool
  11. }
  12. // NewMessageFuture ...
  13. func NewMessageFuture(message protocal.RpcMessage) *MessageFuture {
  14. return &MessageFuture{
  15. ID: message.ID,
  16. Done: make(chan bool),
  17. }
  18. }