• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 @file:JvmName("SystemPropsKt")
2 @file:JvmMultifileClass
3 
4 package kotlinx.coroutines.internal
5 
6 // number of processors at startup for consistent prop initialization
7 internal val AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors()
8 
systemPropnull9 internal actual fun systemProp(
10     propertyName: String
11 ): String? =
12     try {
13         System.getProperty(propertyName)
14     } catch (e: SecurityException) {
15         null
16     }
17