fun executeAfter( afterMicroseconds: Long = 0, operation: () -> Unit)
Plan job for further execution in the worker. operation parameter must be either frozen, or execution to be planned on the current worker. Otherwise IllegalStateException will be thrown.
afterMicroseconds
- defines after how many microseconds delay execution shall happen, 0 means immediately,
IllegalArgumentException
- on negative values of afterMicroseconds.
IllegalStateException
- if operation parameter is not frozen and worker is not current.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-worker/execute-after.html