Skip to content

Conversation

@mmgeorg
Copy link

@mmgeorg mmgeorg commented Apr 21, 2017

No description provided.


// TODO get Optional<first name> from optPerson
final Optional<String> optFirstName = null;
final Optional<String> optFirstName = Optional.of(person.getFirstName());

Choose a reason for hiding this comment

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

// TODO get Optional from optPerso


// TODO Get CompletableFuture<first name> from futurePerson
final CompletableFuture<String> futureFirstName = null;
final CompletableFuture<String> futureFirstName = futurePerson.thenApply(Person::getFirstName);

Choose a reason for hiding this comment

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

// TODO Get CompletableFuture from futurePerson


// TODO Get CompletableFuture<Employee> from futurePerson using getKeyByPerson and employeeDb
final CompletableFuture<Employee> futureEmployee = null;
final CompletableFuture<Employee> futureEmployee = employeeDb.get(getKeyByPerson(futurePerson.get()));

Choose a reason for hiding this comment

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

Don't use blocking method get

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