-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the cancelation can be executed before the task is done (#11225)
* Make the file large enough so that the cancelation can be executed before the task is done * Use StreamContent to indefinitely provide single char per couple dozens milliseconds * Use a fake stream that provides a single character A~Z per a couple of milliseconds without high memory cost instead * Correct the TimeSpan with Milliseconds * Change the implementation of Read() in the fake stream with simple logic and add a comment
- Loading branch information
1 parent
a7bf111
commit 291a810
Showing
1 changed file
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters