aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src
diff options
context:
space:
mode:
authorKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2021-03-04 17:20:31 +0100
committerGitHub <noreply@github.com>2021-03-04 17:20:31 +0100
commitb298da4ce1a55a6f69e7ed00020ed3af558f3750 (patch)
treea404dc86e05815cb250b5b7d027e0cb095e95f6a /plugins/base/src
parent2717e8505a41e188d209b81a3150a16c64ca7239 (diff)
downloaddokka-b298da4ce1a55a6f69e7ed00020ed3af558f3750.tar.gz
dokka-b298da4ce1a55a6f69e7ed00020ed3af558f3750.tar.bz2
dokka-b298da4ce1a55a6f69e7ed00020ed3af558f3750.zip
Fix memory leak caused by coroutines (#1751)
* Fix memory leak caused by coroutines * Catch all exceptions that might fail the build Co-authored-by: Marcin Aman <marcin.aman@gmail.com>
Diffstat (limited to 'plugins/base/src')
-rw-r--r--plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt b/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
index 9bf61af9..e0deef17 100644
--- a/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
+++ b/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
@@ -19,6 +19,7 @@ import org.jetbrains.dokka.utilities.parallelMap
import org.jetbrains.dokka.utilities.report
class SingleModuleGeneration(private val context: DokkaContext) : Generation {
+
override fun Timer.generate() {
report("Validity check")
validityCheck(context)
@@ -48,7 +49,7 @@ class SingleModuleGeneration(private val context: DokkaContext) : Generation {
reportAfterRendering()
}
- override val generationName = " documentation for ${context.configuration.moduleName}"
+ override val generationName = "documentation for ${context.configuration.moduleName}"
fun createDocumentationModels() = runBlocking(Dispatchers.Default) {
context.configuration.sourceSets.parallelMap { sourceSet -> translateSources(sourceSet, context) }.flatten()
@@ -105,4 +106,4 @@ class SingleModuleGeneration(private val context: DokkaContext) : Generation {
else -> translator.invoke(sourceSet, context)
}
}
-} \ No newline at end of file
+}