[K/N] Deprecate -Xworker-exception-handling ^KT-65170

Also deprecate legacy option with error (was a warning since 1.9.20-Beta)
This commit is contained in:
Alexander Shabalin
2024-01-22 11:12:54 +01:00
committed by Space Team
parent 06095e86ca
commit 48f5e1d05c
4 changed files with 5 additions and 78 deletions
@@ -128,12 +128,9 @@ public value class Worker @PublishedApi internal constructor(public val id: Int)
/**
* Plan job for further execution in the worker.
*
* With -Xworker-exception-handling=use-hook, if the worker was created with `errorReporting` set to true, any exception escaping from [operation] will
* If the worker was created with `errorReporting` set to true, any exception escaping from [operation] will
* be handled by [processUnhandledException].
*
* Legacy MM: [operation] parameter must be either frozen, or execution to be planned on the current worker.
* Otherwise [IllegalStateException] will be thrown.
*
* @param afterMicroseconds defines after how many microseconds delay execution shall happen, 0 means immediately,
* @throws [IllegalArgumentException] on negative values of [afterMicroseconds].
* @throws [IllegalStateException] if [operation] parameter is not frozen and worker is not current.