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

Add getExecution/getOrElseExecution #1062

Merged
merged 1 commit into from
Sep 22, 2014
Merged

Add getExecution/getOrElseExecution #1062

merged 1 commit into from
Sep 22, 2014

Conversation

johnynek
Copy link
Collaborator

No description provided.

@johnynek
Copy link
Collaborator Author

Tested this with the repl, but since in really just composes with toOptionExecution and map, it seems super safe.

@@ -47,8 +47,28 @@ sealed trait ValuePipe[+T] extends java.io.Serializable {

def map[U](fn: T => U): ValuePipe[U]
def filter(fn: T => Boolean): ValuePipe[T]
/**
* Identical to toOptionExecution.map(_.get)
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is unecessary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You mean you would prefer I not explain the meaning with code. Note, this will appear in the scaladoc, whereas the implementation won't.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point

@jcoveney
Copy link
Contributor

minor nit, otherwise merge when green

jcoveney added a commit that referenced this pull request Sep 22, 2014
Add getExecution/getOrElseExecution
@jcoveney jcoveney merged commit eb2e098 into develop Sep 22, 2014
@jcoveney jcoveney deleted the execution-get branch September 22, 2014 21:05
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