Skip to content

Conversation

@armanbilge
Copy link
Member

As long as Scala.js supports it, we should too.

Future(0)
else
Future.unit.flatMap(_ => loop(n - 1)).map(_ + 1)
Future.successful(()).flatMap(_ => loop(n - 1)).map(_ + 1)
Copy link
Member Author

Choose a reason for hiding this comment

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

Annoying but they are just tests.

@djspiewak
Copy link
Collaborator

I forgot that Scala even had versions prior to 2.12…

@djspiewak djspiewak merged commit 53f459e into scala-js:main Sep 12, 2021
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