Skip to content

Commit

Permalink
[Concurrency] completeWithTask expects to receive a @Sendable clo…
Browse files Browse the repository at this point in the history
…sure (#1943)
  • Loading branch information
fabianfett authored Aug 19, 2021
1 parent 0f6a62a commit 94f41c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/_NIOConcurrency/AsyncAwaitSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension EventLoopPromise {
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
@discardableResult
@inlinable
public func completeWithTask(_ body: @escaping () async throws -> Value) -> Task<Void, Never> {
public func completeWithTask(_ body: @escaping @Sendable () async throws -> Value) -> Task<Void, Never> {
Task {
do {
let value = try await body()
Expand Down

0 comments on commit 94f41c4

Please sign in to comment.