Skip to content

Commit

Permalink
Add comment on existing taskqueue.close call.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Oct 1, 2024
1 parent 8fce16a commit c71bdb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/page_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ func mapPage(vu moduleVU, p *common.Page) mapping { //nolint:gocognit,cyclop
},
"close": func(opts sobek.Value) *sobek.Promise {
return k6ext.Promise(vu.Context(), func() (any, error) {
// It's safe to close the taskqueue for this targetID (if one
// exists).
vu.taskQueueRegistry.close(p.TargetID())

return nil, p.Close(opts) //nolint:wrapcheck
})
},
Expand Down

0 comments on commit c71bdb1

Please sign in to comment.