Revert "Revert "Isolated synchronous deinit""

This commit is contained in:
Konrad `ktoso` Malawski
2024-09-17 17:35:38 +09:00
parent 8fe0fd1781
commit 7d1ce789ad
88 changed files with 4219 additions and 502 deletions

View File

@@ -23,11 +23,19 @@ internal final class DistributedRemoteActorReferenceExecutor: SerialExecutor {
internal init() {}
#if SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
@inlinable
func enqueue(_ job: UnownedJob) {
let jobDescription = job.description
fatalError("Attempted to enqueue ExecutorJob (\(jobDescription)) on executor of remote distributed actor reference!")
}
#else
@inlinable
public func enqueue(_ job: consuming ExecutorJob) {
let jobDescription = job.description
fatalError("Attempted to enqueue ExecutorJob (\(jobDescription)) on executor of remote distributed actor reference!")
}
#endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
public func asUnownedSerialExecutor() -> UnownedSerialExecutor {
UnownedSerialExecutor(ordinary: self)