Skip to content

Commit 9ccc7bb

Browse files
tsl0922progrium
authored andcommitted
Document session context canceling (#50)
1 parent cff9b0c commit 9ccc7bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

session.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ type Session interface {
5050
// Context returns the connection's context. The returned context is always
5151
// non-nil and holds the same data as the Context passed into auth
5252
// handlers and callbacks.
53+
//
54+
// The context is canceled when the client's connection closes or I/O
55+
// operation fails.
5356
Context() context.Context
5457

5558
// Permissions returns a copy of the Permissions object that was available for

0 commit comments

Comments
 (0)