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

Convert Future to Async #289

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Conversation

JPonte
Copy link
Contributor

@JPonte JPonte commented Nov 20, 2024

Resolves #280

There were 3 similar instances where scala Future/Promises were being used and all of them were similarly converted to Async[F].async. I didn't find test cases for these but the file readers at least are "covered" in the sandbox project where I could confirm they still work without issues. I added yet another contrived example in the Sandbox for the ImageLoader, which wasn't being used anywhere so far, and I'm not entirely sure it's the correct use case for it but at least I can see that it works fine.

Copy link
Member

@davesmith00000 davesmith00000 left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you kindly @JPonte. 🙏
I think you have one stray println in there...

tyrian/src/main/scala/tyrian/cmds/ImageLoader.scala Outdated Show resolved Hide resolved
@davesmith00000 davesmith00000 merged commit 63e4131 into PurpleKingdomGames:main Nov 22, 2024
1 check 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.

FileReader: Convert Future to Async[F].async
2 participants