Created
April 28, 2020 09:39
-
-
Save Malinskiy/0a547e7600aaa0cb5597dcc835500e79 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
suspend fun request() { | |
aSocket(ActorSelectorManager()) | |
.tcp() | |
.connect(InetSocketAddress("127.0.0.1", 5037)).use { socket -> | |
//Work with the socket | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment