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

3 years ago
1234567891011121314151617
  1. package protocol
  2. // MessageFuture ...
  3. type MessageFuture struct {
  4. ID int32
  5. Err error
  6. Response interface{}
  7. Done chan bool
  8. }
  9. // NewMessageFuture ...
  10. func NewMessageFuture(message RpcMessage) *MessageFuture {
  11. return &MessageFuture{
  12. ID: message.ID,
  13. Done: make(chan bool),
  14. }
  15. }

Go Implementation For Seata