Skip to content

Commit bfd393d

Browse files
committed
Merge branch 'master' into develop
2 parents 5bce5c5 + d1be1c9 commit bfd393d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coroutines-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ concurrency, as shown in the section below.
911911
### Structured concurrency with async
912912

913913
Let us take [Concurrent using async](#concurrent-using-async) example and extract a function that
914-
concurrently performs `doSomethingUsefulOne` and `doSomethingUsefulOne` and returns the sum of their results.
914+
concurrently performs `doSomethingUsefulOne` and `doSomethingUsefulTwo` and returns the sum of their results.
915915
Because [async] coroutines builder is defined as extension on [CoroutineScope] we need to have it in the
916916
scope and that is what [coroutineScope] function provides:
917917

@@ -1536,7 +1536,7 @@ Post-main, current thread: Thread[main @coroutine#1,5,main], thread local value:
15361536

15371537
<!--- TEST FLEXIBLE_THREAD -->
15381538

1539-
`ThreadLocal` has first-class support and can be used with any primitive `kotlinx.corotuines` provides.
1539+
`ThreadLocal` has first-class support and can be used with any primitive `kotlinx.coroutines` provides.
15401540
It has one key limitation: when thread-local is mutated, a new value is not propagated to the coroutine caller
15411541
(as context element cannot track all `ThreadLocal` object accesses) and updated value is lost on the next suspension.
15421542
Use [withContext] to update the value of the thread-local in a coroutine, see [asContextElement] for more details.

gradle/dokka.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def coroutines_core = platformLib("kotlinx-coroutines-core", platform)
1010
def makeLinkMapping(dokka, projectDir) {
1111
dokka.linkMapping {
1212
def relPath = rootProject.projectDir.toPath().relativize(projectDir.toPath())
13-
dir = "$projectDir/src/main/kotlin"
13+
dir = "$projectDir/src"
1414
url = "http://github.com/kotlin/kotlinx.coroutines/tree/master/$relPath/src"
1515
suffix = "#L"
1616
}

0 commit comments

Comments
 (0)