W3cubDocs

/Kotlin

current

Platform and version requirements: Native (1.3)
val current: Worker?

Return the current worker, if known, null otherwise. null value will be returned in the main thread or platform thread without an associated worker, non-null - if called inside worker started with Worker.start.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-worker/current.html