Skip to content
Snippets Groups Projects
Commit 5ca22982 authored by Matt Bovel's avatar Matt Bovel
Browse files

Format

parent 89cf93c4
No related branches found
No related tags found
No related merge requests found
Pipeline #157578 passed
......@@ -114,9 +114,8 @@ class PersonsDatabase extends Actor:
// are completed.
val futureOfNames: Future[List[String]] = Future.sequence(namesFutures)
// Finally, map the `Future[List[String]]` to a
// `Future[PersonNames]` and pipe it to the sender of the
// `GetPersonNames` message.
// Finally, map the `Future[List[String]]` to a `Future[PersonNames]` and
// pipe it to the sender of the `GetPersonNames` message.
futureOfNames.map(PersonNames.apply).pipeTo(sender())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment