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

convenience methods converting to and from a completable future #1399

Merged
merged 1 commit into from
Oct 29, 2018
Merged

convenience methods converting to and from a completable future #1399

merged 1 commit into from
Oct 29, 2018

Conversation

drmaas
Copy link
Contributor

@drmaas drmaas commented Oct 25, 2018

This change is Reviewable

@drmaas
Copy link
Contributor Author

drmaas commented Oct 25, 2018

Closes #1390

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@9175639). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1399   +/-   ##
=========================================
  Coverage          ?   73.49%           
  Complexity        ?     4461           
=========================================
  Files             ?      632           
  Lines             ?    16794           
  Branches          ?     1424           
=========================================
  Hits              ?    12343           
  Misses            ?     3815           
  Partials          ?      636
Impacted Files Coverage Δ Complexity Δ
...tpack-exec/src/main/java/ratpack/exec/Promise.java 73.05% <100%> (ø) 117 <2> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9175639...f63a615. Read the comment docs.

* @return a {@link Promise} that will be consumed on the current execution thread.
* @since 1.6
*/
static <T> Promise<T> fromCompletableFuture(CompletableFuture<T> future) {
Copy link
Member

Choose a reason for hiding this comment

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

how about this?

Suggested change
static <T> Promise<T> fromCompletableFuture(CompletableFuture<T> future) {
static <T> Promise<T> toPromise(CompletableFuture<T> future) {

@johnrengelman johnrengelman added this to the release-1.6.0 milestone Oct 29, 2018
@johnrengelman johnrengelman merged commit 0757aca into ratpack:master Oct 29, 2018
jsalinaspolo pushed a commit to jsalinaspolo/ratpack that referenced this pull request Nov 5, 2018
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