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

Use Loom #12

Open
makingthematrix opened this issue Mar 24, 2023 · 0 comments
Open

Use Loom #12

makingthematrix opened this issue Mar 24, 2023 · 0 comments

Comments

@makingthematrix
Copy link
Owner

For now this is just a research idea. Signals3 extends Scala's ExecutionContext to make it possible for the user to create limited dispatch queues where only a given number of tasks run concurrently (special case: SerialDispatchQueue with the limit set to one, when the user needs to ensure that an execution of .foreach in a signal or a stream is serialized).

I could maybe provide a different implementation of DispatchQueue, LoomDispatchQueue, that uses Loom virtual threads instead of the regular ones. Since Loom is not widely adopted, it would also require some logic that would check under the hood if we can use Loom, and if not, then it would give the user a regular DispatchQueue instead.

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

No branches or pull requests

1 participant