We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c210b51 commit e0748aeCopy full SHA for e0748ae
SwiftTask/SwiftTask.swift
@@ -32,13 +32,13 @@ public class TaskConfiguration
32
public var cancel: (Void -> Void)?
33
34
/// useful to terminate immediate-infinite-sequence while performing `initClosure`
35
- public private(set) var isFinished: Bool = false
36
-
37
- public init()
+ public var isFinished : Bool
38
{
39
+ return _isFinished.rawValue
40
}
41
+ private var _isFinished = _Atomic(false)
+
42
internal func finish()
43
44
//
@@ -53,7 +53,7 @@ public class TaskConfiguration
53
self.pause = nil
54
self.resume = nil
55
self.cancel = nil
56
- self.isFinished = true
+ self._isFinished.rawValue = true
57
58
59
0 commit comments