You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Foundation/NSOperation.swift
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,6 @@ open class Operation : NSObject {
47
47
#endif
48
48
}
49
49
50
-
/// - Note: Operations that are asynchronous from the execution of the operation queue itself are not supported since there is no KVO to trigger the finish.
51
50
openfunc start(){
52
51
main()
53
52
finish()
@@ -159,6 +158,24 @@ open class Operation : NSObject {
159
158
}
160
159
}
161
160
161
+
/// The following two methods are added to provide support for Operations which
162
+
/// are asynchronous from the execution of the operation queue itself. On Darwin,
163
+
/// this is supported via KVO notifications. In the absence of KVO on non-Darwin
164
+
/// platforms, these two methods (which are defined in NSObject on Darwin) are
165
+
/// temporarily added here. They should be removed once a permanent solution is
0 commit comments