Fix kotlin language highlight for CONCURRENCY.md

This commit is contained in:
zoobestik
2020-07-03 20:27:58 +03:00
committed by SvyatoslavScherbina
parent 801f6a5036
commit e9c8904445
+2 -2
View File
@@ -94,7 +94,7 @@ future.consume {
concurrent threads, if the worker mechanisms are insufficient for a particular task. Note, that object detachment concurrent threads, if the worker mechanisms are insufficient for a particular task. Note, that object detachment
may require explicit leaving function holding object references and then performing cyclic garbage collection. may require explicit leaving function holding object references and then performing cyclic garbage collection.
For example, code like: For example, code like:
```$kotlin ```kotlin
val graph = DetachedObjectGraph { val graph = DetachedObjectGraph {
val map = mutableMapOf<String, String>() val map = mutableMapOf<String, String>()
for (entry in map.entries) { for (entry in map.entries) {
@@ -104,7 +104,7 @@ val graph = DetachedObjectGraph {
} }
``` ```
will not work as expected and will throw runtime exception, as there are uncollected cycles in the detached graph, while: will not work as expected and will throw runtime exception, as there are uncollected cycles in the detached graph, while:
```$kotlin ```kotlin
val graph = DetachedObjectGraph { val graph = DetachedObjectGraph {
{ {
val map = mutableMapOf<String, String>() val map = mutableMapOf<String, String>()