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

Internal code refactoring #43

Merged
merged 3 commits into from
Sep 23, 2023
Merged

Internal code refactoring #43

merged 3 commits into from
Sep 23, 2023

Conversation

shtaif
Copy link
Owner

@shtaif shtaif commented Sep 23, 2023

Internal code refactoring to simplify and untangle a bit the processes that happen across mainly createMulticastChannel.ts and iterified.ts:

  • iterified.ts - attempt to make the code flow revolve as much as possible around the generator code + other various simplifications.

  • createMulticastChannel.ts - remove the apparently-unnecessary makeCallableOnceAtATime wrapper for the next method (since its overall logic seemed to achieve the once-at-a-time effect by itself already), convert the individual pending pulls awaiting logic from the style of a "subscription Map that holds deferreds" to a simpler kinda more natural "shared deferred local iterator deferreds" + other various simplifications.

…s that happen across mainly `createMulticastChannel.ts` and `iterified.ts`
@shtaif shtaif self-assigned this Sep 23, 2023
@shtaif shtaif marked this pull request as ready for review September 23, 2023 13:15
@shtaif shtaif merged commit cc8f333 into master Sep 23, 2023
4 checks passed
@shtaif shtaif deleted the internal-code-refactoring branch September 23, 2023 14:43
shtaif pushed a commit that referenced this pull request Sep 29, 2023
## [1.2.4](v1.2.3...v1.2.4) (2023-09-29)

### Refactor

* internal code refactoring to simplify and untangle a bit the processes that happen across mainly `createMulticastChannel.ts` and `iterified.ts` ([#43](#43)) ([cc8f333](cc8f333))

### Tests

* edit test titles' wording ([#42](#42)) ([d636e3a](d636e3a))

### Documentation

* edit and add some more JSDocs ([#46](#46)) ([a7141ec](a7141ec))
* small assorted edits across `README.md` ([#45](#45)) ([ec15cde](ec15cde))
@github-actions
Copy link

🎉 This PR is included in version 1.2.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

1 participant