Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Xcode 15 resolution #134

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions PSOperations/Operation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ public typealias PSOperation = Operation
open class Operation: Foundation.Operation {

private static var psoperationContext = 0


#if swift(>=5.9)
public typealias CompletionBlock = @Sendable () -> Void
#else
public typealias CompletionBlock = () -> Void
#endif

/* The completionBlock property has unexpected behaviors such as executing twice and executing on unexpected threads. BlockObserver
* executes in an expected manner.
*/
@available(*, deprecated, message: "use BlockObserver completions instead")
override open var completionBlock: (() -> Void)? {
override open var completionBlock: CompletionBlock? {
get {
return nil
}
Expand Down