Skip to content

Commit

Permalink
Fix builds on Xcode 14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Apr 3, 2023
1 parent 9b5bc75 commit 0ebce7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Compute/ReadableBody/ReadableBody+Wasi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ internal actor ReadableWasiBody: ReadableBody {

extension ReadableWasiBody {

func pipeTo(_ dest: isolated WritableBody, preventClose: Bool) async throws {
var destBody = dest.body
func pipeTo(_ dest: WritableBody, preventClose: Bool) async throws {
var destBody = await dest.body
try body.read {
try destBody.write($0)
return .continue
Expand Down
4 changes: 2 additions & 2 deletions Sources/Compute/WritableBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public actor WritableBody: Sendable {

extension WritableBody {

public func append(_ source: isolated ReadableBody) async throws {
public func append(_ source: ReadableBody) async throws {
guard writable else { return }
try body.append(source.body)
try await body.append(source.body)
try await Task.nextTick()
}

Expand Down

0 comments on commit 0ebce7a

Please sign in to comment.