Last active
July 21, 2019 08:27
-
-
Save ghostdogpr/97793a76f4c3b953a114c02f88ebb76c to your computer and use it in GitHub Desktop.
This file contains 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
def sendMsg(actor: ActorRef, msg: String): Task[String] = | |
IO.fromFuture { implicit ctx => | |
(actor ? msg).mapTo[String] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment