Last active
April 13, 2018 12:45
-
-
Save deque-blog/9a50cebec11ccc7ea85c4871bdd2eed5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuggestPopularFriendPost { | |
private final IAccessProfileInfo profileInfo; | |
private final ExecutorService executor; // Where would it come from? | |
private Future<Iterable<ProfileId> friendsOf(ProfileId profileId) { | |
return executor.submit(() -> profileInfo.friendsOf(profileId)); | |
} | |
// ... remaining code ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment