Albert
09/17/2018, 1:44 PM@Test fun testActor() {
val testActor = actor<String> {
println(channel.receive())
}
testActor.sendBlocking("CHANNEL-MESSAGE")
}
When I run this locally on my machine I see CHANNEL-MESSAGE
being printed. But when I build this with docker it is never received. My Dockerfile
looks like:
FROM maven:3.3.9-jdk-8
COPY . project/
WORKDIR project
RUN mvn clean package
I used version 3.3.9
which is the same on my local machine. With docker it actually freezes on the sendBlocking
.
Anyone a clue how this is possible?gildor
09/17/2018, 11:24 PMgildor
09/17/2018, 11:32 PMAlbert
09/18/2018, 9:17 AMgildor
09/18/2018, 9:20 AMAlbert
09/18/2018, 9:32 AMgildor
09/18/2018, 9:34 AMcpuNum - 1
gildor
09/18/2018, 9:35 AMgildor
09/18/2018, 9:36 AMkotlinx.coroutines.default.parallelism
to set minimal amount of threads in commonpoolgildor
09/18/2018, 9:37 AMgildor
09/18/2018, 9:38 AM