Fix typo in context cancellation docs
This commit is contained in:
parent
4c2aaf78a2
commit
e3ee95b282
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ return consumer.SkipCheckpoint
|
|||
return errors.New("my error, exit all scans")
|
||||
```
|
||||
|
||||
Use context cancel to signal the scan to exit without error. For example if we wanted to gracefulloy exit the scan on interrupt.
|
||||
Use context cancel to signal the scan to exit without error. For example if we wanted to gracefully exit the scan on interrupt.
|
||||
|
||||
```go
|
||||
// trap SIGINT, wait to trigger shutdown
|
||||
|
|
|
|||
Loading…
Reference in a new issue