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 978317a commit ff63137Copy full SHA for ff63137
Shouter/Shouter.swift
@@ -8,17 +8,15 @@
8
9
import Foundation
10
11
-public protocol Notifier {
12
- func notify<T>(_ type: T.Type, block: (T) -> Void)
13
-}
14
-
15
public protocol NotificationRegistry {
16
func register<T>(_ type: T.Type, observer: T)
17
func unregister<T>(_ type: T.Type, observer: T)
18
func unregister<T>(_ type: T.Type)
+
+ func notify<T>(_ type: T.Type, block: (T) -> Void)
19
}
20
21
-public class Shouter: Notifier, NotificationRegistry {
+public class Shouter: NotificationRegistry {
22
23
public static let `default` = Shouter()
24
0 commit comments