Skip to content

Commit c2d165e

Browse files
committed
Add configBlock
1 parent fcb490d commit c2d165e

File tree

1 file changed

+4
-2
lines changed
  • aws-crt-kotlin/native/src/aws/sdk/kotlin/crt

1 file changed

+4
-2
lines changed

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/WithCrt.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ package aws.sdk.kotlin.crt
77
/**
88
* A mixin class used to ensure CRT is initialized before the class is invoked
99
*/
10-
public open class WithCrt {
10+
public open class WithCrt(configBlock: Config.() -> Unit = {}) {
1111
init {
12-
CRT.initRuntime { }
12+
CRT.initRuntime {
13+
configBlock()
14+
}
1315
}
1416
}

0 commit comments

Comments
 (0)