Add CancellationToken explanation to SpeechToText docs#636
Conversation
|
Learn Build status updates of commit 26bf09d:
|
… SpeechToText docs Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit a5ded68: ✅ Validation status: passed
For more details, please refer to the build report. |
|
@copilot also mention that if you don't want to cancel it you can just use CancellationToken.None |
This is already covered in the NOTE block on line 63: "You can also use |
The SpeechToText documentation uses
cancellationTokenwithout explaining what it is or how to obtain one. The dependency injection example also references an undefinedcancellationTokenvariable.CancellationToken,CancellationTokenSource, andCancellationToken.None, with a link to Microsoft's threading docs (consistent withfolder-picker.md)cancellationTokenwas an undefined variable. Now shows aCancellationTokenSourcefield with proper token creation:Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.