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

AsncResult #171

Open
patrickmichalina opened this issue May 14, 2021 · 2 comments
Open

AsncResult #171

patrickmichalina opened this issue May 14, 2021 · 2 comments

Comments

@patrickmichalina
Copy link
Owner

No description provided.

@colvint
Copy link

colvint commented May 17, 2021

Yes!

@ChrisHadar
Copy link

Planning on implementing this for Result and Maybe. I'm considering three possibilities:

  1. Altering the existing map method to check for promises and unwrap/wrap them appropriately
  2. Adding a separate method (aMap or mapAsync) which would be dedicated to the intended behavior
  3. Creating another class entirely in which each method accounts for async mappers and promises

Right off the bat, #3 seems like overkill. I believe #1 would be doable via overloaded method signatures without, for example, making every call result in a promise. And #2 would likely be the simplest. I'll be writing some test cases for the intended behavior and returning here.

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

No branches or pull requests

3 participants