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
An implementation of `EventHandler` designed to Queue/Stack outbound events, and Dispatch them to all registered `listeners`
15
+
- Author: Simon J. Stuart
16
+
- Version: 1.0.0
17
+
- Note: While you can inherit from and even create instances of `EventDispatcher`, best practice would be to use `EventCentral.shared` as the central Event Dispatcher.
Abstract Base Type for all `EventRecevier` Thread Types.
15
+
- Author: Simon J. Stuart
16
+
- Version: 1.0.0
17
+
- Note: Inherit from this to implement a discrete unit of code designed specifically to operate upon specific `Eventable` types containing information useful to its operation(s)
@@ -33,8 +39,6 @@ public class EventReceiver: EventHandler, EventReceivable {
33
39
*/
34
40
@ThreadSafeSemaphoreprivatevareventCallbacks=[String:EventCallback]() //TODO: Make this a Revolving Door collection!
35
41
36
-
// @ThreadSafeSemaphore private var typedEventCallbacks = [String:Any]() //TODO: Find an implementation that works for strong-typed Event Callbacks (P.S. limitations of Swift Generics are very annoying!)
37
-
38
42
/**
39
43
Invoke the appropriate Callback for the given Event
40
44
- Author: Simon J. Stuart
@@ -72,24 +76,21 @@ public class EventReceiver: EventHandler, EventReceivable {
0 commit comments