Skip to content

Commit 6dc1bd5

Browse files
authored
Update shared-mutable-state-and-concurrency.md
Main func should return Unit, otherwise it won't run
1 parent f7335d0 commit 6dc1bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/shared-mutable-state-and-concurrency.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ fun CoroutineScope.counterActor() = actor<CounterMsg> {
501501
}
502502

503503
//sampleStart
504-
fun main() = runBlocking {
504+
fun main() = runBlocking<Unit> {
505505
val counter = counterActor() // create the actor
506506
withContext(Dispatchers.Default) {
507507
massiveRun {

0 commit comments

Comments
 (0)