Skip to content

Commit

Permalink
Add comment on initContext
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Sep 12, 2024
1 parent b52ef8a commit 41ad3e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const (

// Browser stores a Browser context.
type Browser struct {
// These are internal contexts which control the lifecycle of the goroutine
// that handles incoming CDP commands. It is shutdown when browser.close()
// is called.
initContext context.Context
initCancelFn context.CancelFunc

Expand Down

0 comments on commit 41ad3e0

Please sign in to comment.