Skip to content

wip injectable stream #408

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

Open
wants to merge 11 commits into
base: dev-1.0
Choose a base branch
from
Open

wip injectable stream #408

wants to merge 11 commits into from

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented May 30, 2025

No description provided.

Copy link

changeset-bot bot commented May 30, 2025

⚠️ No Changeset found

Latest commit: 141f4cf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

]);
}

get readable() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also consider supporting "eject" (read single value from stream) operation? Basically making stream also have a queue-like API with put as inject and get as eject

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure if there's a concrete use case?

I'd be in favor of implementing additional features (generally) only once we know we have a defined use case for it.

@lukasIO lukasIO marked this pull request as ready for review June 4, 2025 04:39
@lukasIO lukasIO requested a review from Shubhrakanti June 4, 2025 04:39
}
}

async close() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@toubatbrian might be worth taking over this PR and working on the releasing the lock on the readable source once we close the stream.

Some tests would be good to.

@lukasIO lukasIO requested a review from toubatbrian June 4, 2025 04:52
@@ -2,6 +2,7 @@
"extends": "../tsconfig.json",

"compilerOptions": {
"types": ["node"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of defining it here, I think it would make sense to define it in the root package.json so that all packages (including plugins) get it by default

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.

3 participants