Skip to content

Docs for Promise #41

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

Merged
merged 2 commits into from
Feb 18, 2023
Merged

Docs for Promise #41

merged 2 commits into from
Feb 18, 2023

Conversation

aspeddro
Copy link
Contributor

  • Add examples header
  • Add MDN links
  • Add module docstring

@zth
Copy link
Collaborator

zth commented Feb 17, 2023

Is this ready for review?

*/
external done: promise<'a> => unit = "%ignore"

// TODO: add docstring
Copy link
Contributor

Choose a reason for hiding this comment

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

These are reserved for the compiler. Can be removed from here as not part of the public api.
Assuming removing them does not stop async code from compiling after opening Core: one just needs to check this. I think it's OK as the Js.* namespace is still visible.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can try again, but IIRC the reason I added them was because async/await didn't work otherwise. Maybe that's something that can be fixed though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you check again? And if so add an issue to the compiler.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, I'll do that

Copy link
Collaborator

@zth zth Feb 17, 2023

Choose a reason for hiding this comment

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

It seems to work just fine without them. Interesting, I wonder what errored back when I decided to add them... Anyway, we can go ahead and just remove them from Core. I'll do that directly in main after this PR is merged.

@aspeddro aspeddro marked this pull request as ready for review February 17, 2023 19:24
@aspeddro
Copy link
Contributor Author

Ready for review

Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

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

Just 2 small things and then we're good to go. Thank you!

@zth zth merged commit e267806 into rescript-lang:main Feb 18, 2023
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