Skip to content

Commit 3b6b210

Browse files
committed
1.0.6 - Bump
Forgot I had already released 1.0.5 so bumped up to 1.0.6
1 parent 84c9a7d commit 3b6b210

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
dependencies: [
2828
.package(
2929
url: "https://github.com/Flowduino/Observable.git",
30-
.upToNextMajor(from: "1.0.5")
30+
.upToNextMajor(from: "1.0.6")
3131
),
3232
],
3333
//...

Sources/Observable/ObservableThread.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ThreadSafeSwift
1212
/**
1313
Provides custom Observer subscription and notification behaviour for Threads
1414
- Author: Simon J. Stuart
15-
- Version: 1.0.5
15+
- Version: 1.0.6
1616
- Note: The Observers are behind a Semaphore Lock
1717
- Note: A "Revolving Door" solution has been implemented to ensure that Observer Callbacks can modify the Observers (add/remove) without causing a Deadlock.
1818
*/
@@ -44,22 +44,22 @@ open class ObservableThread: Thread, Observable, ObservableObject {
4444
/**
4545
Dictionary mapping an `ObjectIdentifer` (reference to an Observer Instance) against its `ObserverContainer`
4646
- Author: Simon J. Stuart
47-
- Version: 1.0.5
47+
- Version: 1.0.6
4848
*/
4949
@ThreadSafeSemaphore private var observers = [ObjectIdentifier : ObserverContainer]()
5050

5151
/**
5252
Dictionary mapping an `ObjectIdentifer` (reference to an Observer Instance) against its `ObserverContainer`
5353
- Author: Simon J. Stuart
54-
- Version: 1.0.5
54+
- Version: 1.0.6
5555
- Note: This is used as a temporary "Holding Queue" when the `observers` Dictionary has its Lock retained by another Thread.
5656
*/
5757
@ThreadSafeSemaphore private var observersAddQueue = [ObjectIdentifier : ObserverContainer]()
5858

5959
/**
6060
Dictionary mapping an `ObjectIdentifer` (reference to an Observer Instance) against its `ObserverContainer`
6161
- Author: Simon J. Stuart
62-
- Version: 1.0.5
62+
- Version: 1.0.6
6363
- Note: This is used as a temporary "Holding Queue" when the `observers` Dictionary has its Lock retained by another Thread.
6464
*/
6565
@ThreadSafeSemaphore private var observersRemoveQueue = [ObjectIdentifier : ObserverContainer]()
@@ -89,7 +89,7 @@ open class ObservableThread: Thread, Observable, ObservableObject {
8989
/**
9090
Iterates all Observers and invokes your Closure if they conform to the expected Protocol
9191
- Author: Simon J. Stuart
92-
- Version: 1.0.5
92+
- Version: 1.0.6
9393
*/
9494
public func withObservers<TObservationProtocol>(_ code: @escaping (_ observer: TObservationProtocol) -> ()) {
9595
_observers.withLock { observers in

Sources/Observable/ObservableThreadSafeClass.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ThreadSafeSwift
1212
/**
1313
Provides custom Observer subscription and notification behaviour for Classes that will be interacting with Multiple Threads
1414
- Author: Simon J. Stuart
15-
- Version: 1.0.5
15+
- Version: 1.0.6
1616
- Note: The Observers are behind a Semaphore Lock
1717
- Note: A "Revolving Door" solution has been implemented to ensure that Observer Callbacks can modify the Observers (add/remove) without causing a Deadlock.
1818
*/
@@ -44,22 +44,22 @@ open class ObservableThreadSafeClass: Observable, ObservableObject {
4444
/**
4545
Dictionary mapping an `ObjectIdentifer` (reference to an Observer Instance) against its `ObserverContainer`
4646
- Author: Simon J. Stuart
47-
- Version: 1.0.5
47+
- Version: 1.0.6
4848
*/
4949
@ThreadSafeSemaphore private var observers = [ObjectIdentifier : ObserverContainer]()
5050

5151
/**
5252
Dictionary mapping an `ObjectIdentifer` (reference to an Observer Instance) against its `ObserverContainer`
5353
- Author: Simon J. Stuart
54-
- Version: 1.0.5
54+
- Version: 1.0.6
5555
- Note: This is used as a temporary "Holding Queue" when the `observers` Dictionary has its Lock retained by another Thread.
5656
*/
5757
@ThreadSafeSemaphore private var observersAddQueue = [ObjectIdentifier : ObserverContainer]()
5858

5959
/**
6060
Dictionary mapping an `ObjectIdentifer` (reference to an Observer Instance) against its `ObserverContainer`
6161
- Author: Simon J. Stuart
62-
- Version: 1.0.5
62+
- Version: 1.0.6
6363
- Note: This is used as a temporary "Holding Queue" when the `observers` Dictionary has its Lock retained by another Thread.
6464
*/
6565
@ThreadSafeSemaphore private var observersRemoveQueue = [ObjectIdentifier : ObserverContainer]()
@@ -89,7 +89,7 @@ open class ObservableThreadSafeClass: Observable, ObservableObject {
8989
/**
9090
Iterates all Observers and invokes your Closure if they conform to the expected Protocol
9191
- Author: Simon J. Stuart
92-
- Version: 1.0.5
92+
- Version: 1.0.6
9393
*/
9494
public func withObservers<TObservationProtocol>(_ code: @escaping (_ observer: TObservationProtocol) -> ()) {
9595
_observers.withLock { observers in

0 commit comments

Comments
 (0)