Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel example #248

Merged
merged 7 commits into from
Mar 5, 2022
Merged

Cancel example #248

merged 7 commits into from
Mar 5, 2022

Conversation

thekevinscott
Copy link
Owner

Add an example demonstrating cancel

@codecov
Copy link

codecov bot commented Mar 5, 2022

Codecov Report

Merging #248 (9853bc8) into ks/v0.12.0 (bdf227b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           ks/v0.12.0     #248   +/-   ##
===========================================
  Coverage       88.88%   88.88%           
===========================================
  Files               8        8           
  Lines             378      378           
  Branches           61       61           
===========================================
  Hits              336      336           
  Misses             42       42           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdf227b...9853bc8. Read the comment docs.

@thekevinscott thekevinscott merged commit 3bc6239 into ks/v0.12.0 Mar 5, 2022
@thekevinscott thekevinscott deleted the ks/cancel-example branch March 5, 2022 14:29
thekevinscott added a commit that referenced this pull request Mar 5, 2022
* Refactor to generator (#234)

* Refactor predict to be a generator function

* Refactor upscale function into a generator (#236)

* Move yielding to wrapper upscale function (#237)

* Add abort signal to enable cancellation (#238)

* Update version script (#239)

* Update version script to also update dependencies

* Cancel method integration test (#240)

* Migrate progress test to upscale

* Add integration test for cancel

* Refactor upscale method to accept an internal args object (#241)

* Refactor predict function (#243)

* Refactor predict function

* Insist on parameters for sub upscale functions

* Refactor upscaling code to have better types around async generator return values (#242)

* Rearrange upscale functions to be typed better and add a memory leak test

* Set up a generator wrap function (#244)

* Set up a generator wrap function

* Add test for wrapGenerator function

* Strengthen tests around generator wrap

* Remove console logs

* Add test to cover console warn

* Add coverage to isAborted method

* Cancel method memory leak test (#245)

* Add unit test for memory allocation in predict function

* Update docs (#246)

* Fix examples (#247)

* Bump to latest version and add babelrc

* Migrate examples to use esbuild instead of parcel

* Remove yarnrc from repo

* Ignore yarnrc

* Cancel example (#248)

* Add abort signal to enable cancellation

* Initial commit for cancel example

* Merge upstream

* Implement cancel example

* Initialize value as undefined (#249)

* Add top level abort (#250)

* Add a top level abort

* Add an integration test for cancel

* Update documentation

* Fix deepsource issue

* Add exception for consoles (#251)
thekevinscott added a commit that referenced this pull request Mar 5, 2022
* Refactor to generator (#234)

* Refactor predict to be a generator function

* Refactor upscale function into a generator (#236)

* Move yielding to wrapper upscale function (#237)

* Add abort signal to enable cancellation (#238)

* Update version script (#239)

* Update version script to also update dependencies

* Cancel method integration test (#240)

* Migrate progress test to upscale

* Add integration test for cancel

* Refactor upscale method to accept an internal args object (#241)

* Refactor predict function (#243)

* Refactor predict function

* Insist on parameters for sub upscale functions

* Refactor upscaling code to have better types around async generator return values (#242)

* Rearrange upscale functions to be typed better and add a memory leak test

* Set up a generator wrap function (#244)

* Set up a generator wrap function

* Add test for wrapGenerator function

* Strengthen tests around generator wrap

* Remove console logs

* Add test to cover console warn

* Add coverage to isAborted method

* Cancel method memory leak test (#245)

* Add unit test for memory allocation in predict function

* Update docs (#246)

* Fix examples (#247)

* Bump to latest version and add babelrc

* Migrate examples to use esbuild instead of parcel

* Remove yarnrc from repo

* Ignore yarnrc

* Cancel example (#248)

* Add abort signal to enable cancellation

* Initial commit for cancel example

* Merge upstream

* Implement cancel example

* Initialize value as undefined (#249)

* Add top level abort (#250)

* Add a top level abort

* Add an integration test for cancel

* Update documentation

* Fix deepsource issue

* Update changelog and versions

* Fix linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant