Skip to content

Commit

Permalink
Fix race condition caused by me not having a full mental model of how…
Browse files Browse the repository at this point in the history
… Actors work
  • Loading branch information
younata committed Sep 14, 2023
1 parent 8528046 commit d8bac51
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Sources/Nimble/Utils/AsyncAwait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ internal actor AsyncPromise<T> {
}

nonisolated func send(_ value: T) {
Task {
await self._send(value)
}
}

private func _send(_ value: T) {
self.storage.send(value)
}

Expand Down

0 comments on commit d8bac51

Please sign in to comment.