Skip to content

Commit

Permalink
use daemon thread (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
davin111 authored May 23, 2023
1 parent 4c06e05 commit 60c2dfa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion truffle-core/src/main/kotlin/TruffleClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ internal class DefaultTruffleClient(

init {
val coroutineScope = CoroutineScope(
Executors.newSingleThreadExecutor { r -> Thread(r, "truffle-client") }.asCoroutineDispatcher()
Executors.newSingleThreadExecutor {
r ->
Thread(r, "truffle-client").apply { isDaemon = true }
}.asCoroutineDispatcher()
)
val webClient = webClientBuilder
.codecs {
Expand Down
5 changes: 5 additions & 0 deletions truffle-spring-boot-starter/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
kotlin("kapt")
}

apply {
plugin("kotlin-allopen")
plugin("kotlin-spring")
Expand All @@ -7,6 +11,7 @@ dependencies {
compileOnly("org.springframework.boot:spring-boot-starter-web")
compileOnly("org.springframework.boot:spring-boot-starter-webflux")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
kapt("org.springframework.boot:spring-boot-configuration-processor")

implementation(project(":truffle-core"))
compileOnly(project(":truffle-logback"))
Expand Down

0 comments on commit 60c2dfa

Please sign in to comment.