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

Bring Promise and withResolver together #31

Merged
merged 4 commits into from
Dec 23, 2023

Conversation

m8nmueller
Copy link
Contributor

Both support external completion. Make classical Promise implementation a subclass of CoreFuture (not directly possible because public-extends-private is forbidden) and make withResolve return a Promise as well. In PIO, classical Promise was used where withResolve is perfectly suited.

Copy link
Contributor

@natsukagami natsukagami left a comment

Choose a reason for hiding this comment

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

Just some minor questions :P

shared/src/main/scala/async/futures.scala Outdated Show resolved Hide resolved
jvm/src/main/scala/PosixLikeIO/PIO.scala Outdated Show resolved Hide resolved
Copy link
Contributor

@natsukagami natsukagami left a comment

Choose a reason for hiding this comment

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

LGTM!

@natsukagami natsukagami merged commit ec8ac5a into lampepfl:main Dec 23, 2023
3 checks passed
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.

2 participants