Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
Need to make `Internal` methods `open` now that the code is in its own library
  • Loading branch information
LK-Simon committed Jul 13, 2022
1 parent 75600d0 commit 95ff51d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Observable/ObservableThread.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ open class ObservableThread: Thread, Observable, ObservableObject {
self._observers.lock.signal()
}

internal func notifyChange() {
open func notifyChange() {
Task {
await notifyChange()
}
}

internal func notifyChange() async {
open func notifyChange() async {
await MainActor.run {
objectWillChange.send()
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/Observable/ObservableThreadSafeClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ open class ObservableThreadSafeClass: Observable, ObservableObject {
self._observers.lock.signal()
}

internal func notifyChange() {
open func notifyChange() {
Task {
await notifyChange()
}
}

internal func notifyChange() async {
open func notifyChange() async {
await MainActor.run {
objectWillChange.send()
}
Expand Down

0 comments on commit 95ff51d

Please sign in to comment.