Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09e2c01 + c76d829 commit 089fd28Copy full SHA for 089fd28
1 file changed
session.go
@@ -207,6 +207,12 @@ func (s *Session) Close() error {
207
}
208
209
210
+// CloseChan can be used by someone who wants to be notified immediately when this
211
+// session is closed
212
+func (s *Session) CloseChan() <-chan struct{} {
213
+ return s.die
214
+}
215
+
216
// notifyBucket notifies recvLoop that bucket is available
217
func (s *Session) notifyBucket() {
218
select {
0 commit comments