Files
kotlin-fork/samples/concurrent
Ilya Matveev 9747704c8b samples: Minor fixes for bundle
1. Rearrange tasks for C++ and Kotlin compilation in concurrent
sample. It allows the build to download all dependencies before
the compilation.

2. Don't copy *.kt.bc-build directories in the distribution archive.
2017-06-20 18:13:35 +07:00
..
2017-06-20 18:13:35 +07:00

Concurrent

This example shows how to implement concurrent programming in Kotlin/Native. In this example we start multiple threads running concurrently and exchange messages with them.

To build cpp use ./buildCpp.sh. To build kotlin native use ../gradlew build or ./build.sh.

To run use ../gradlew run

Alternatively you can run artifact directly

./build/konan/bin/MessageChannel/MessageChannel.kexe

It will print all passed messages.