commit 4bf49d56a1811d781e8405737992c5d9af173da5
parent 6a70e03c7738491d3bed4ce2bfbcb4a7cd15988f
Author: Matsuda Kenji <info@mtkn.jp>
Date: Mon, 25 Dec 2023 09:16:55 +0900
add comments
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/req.go b/req.go
@@ -9,13 +9,18 @@ import (
type Req struct {
Tag uint16
Srv *Server
+ // Ifcall is incomming 9P message
Ifcall Msg
+ // Ofcall is response message to Ifcall.
Ofcall Msg
Fid *Fid
Afid *Fid
Oldreq *Req
pool *ReqPool
+ // Cancel is used to flush the request.
Cancel context.CancelFunc
+ // Done is used by time consuming goroutines to check whether the request
+ // is canceled.
Done <-chan struct{}
// listenErr is any error encountered while waiting for new 9P message.
listenErr error