Skip to content

Instantly share code, notes, and snippets.

@akgupta
Last active April 18, 2020 09:35
Show Gist options
  • Save akgupta/68eb916926d29836cd5ab0e387b1b5a1 to your computer and use it in GitHub Desktop.
Save akgupta/68eb916926d29836cd5ab0e387b1b5a1 to your computer and use it in GitHub Desktop.
Pair<ActorRef, Source<EventSource.Event, NotUsed>> actorRefEventSourcePair =
actorRefPoweredEventSource.preMaterialize(_materializer);
ActorRef eventSourceActor = actorRefEventSourcePair.first();
Source<EventSource.Event, ?> eventSource = actorRefEventSourcePair.second();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment