From d8bac5136581ce02d8888d751fcdfbfaf2e9d970 Mon Sep 17 00:00:00 2001 From: Rachel Brindle Date: Thu, 14 Sep 2023 07:26:45 -0700 Subject: [PATCH] Fix race condition caused by me not having a full mental model of how Actors work --- Sources/Nimble/Utils/AsyncAwait.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Sources/Nimble/Utils/AsyncAwait.swift b/Sources/Nimble/Utils/AsyncAwait.swift index 887b07dbf..12547249f 100644 --- a/Sources/Nimble/Utils/AsyncAwait.swift +++ b/Sources/Nimble/Utils/AsyncAwait.swift @@ -91,12 +91,6 @@ internal actor AsyncPromise { } nonisolated func send(_ value: T) { - Task { - await self._send(value) - } - } - - private func _send(_ value: T) { self.storage.send(value) }