-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
RFC: more-promise-methods #1691
Comments
I'm very new to Pony and probably don't have this signature right but does it make sense to also have a fun tag flat_map[B: Any #share = A](f: {(val->A): Promise[B]}[A, B] box): Promise[B] Or, is there a way I can turn a |
@jeremyjh I expect that more methods such as flat_map will be added through future RFCs. Currently, the next method acts as "bind". If you would be interested in starting a discussion about additional methods for the Promise API, then you may write up the RFC with the one linked above as reference. More information about the RFC process can be found here: https://github.com/ponylang/rfcs/blob/master/README.md |
@Theodus once the currently ongoing tuple work gets merged, will this be unblocked? |
@SeanTAllen It should be. |
This has been unblocked by #1937 |
Additional methods for the Promise actor:
https://github.com/ponylang/rfcs/blob/master/text/0035-more-promise-methods.md
The text was updated successfully, but these errors were encountered: