Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add `addTeardown()`. Closes #3. Closes #19. * Remove old note * Remove the syntactic sugar analogy The intent with that analogy was to describe how *part* of `addTeardown()` is syntactic sugar over immediately checking `subscriber.signal.aborted`, and *otherwise* setting the given cleanup function to the signal's abort handler, and also invoking it during `complete()` and `error()`, but that latter part was not clear at all and was contradictory as @annevk pointed out. So this commit removes the example, in favor of the earlier descriptive text. * chore: add more information about when teardown occurs. --------- Co-authored-by: Ben Lesh <ben@benlesh.com>
- Loading branch information