File tree 1 file changed +3
-3
lines changed
Sources/EventDrivenSwift/EventThread
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ open class EventThread: EventReceiver, EventThreadable {
85
85
/**
86
86
Removes an Event Callback for the given `Eventable` Type
87
87
- Author: Simon J. Stuart
88
- - Version: 4.0.0
88
+ - Version: 4.0.2
89
89
- Parameters:
90
90
- forEventType: The `Eventable` Type for which to Remove the Callback
91
91
*/
92
- open func removeEventCallback( forEventType: any Eventable ) {
92
+ open func removeEventCallback( forEventType: Eventable . Type ) {
93
93
let eventTypeName = String ( reflecting: forEventType)
94
94
95
95
_eventCallbacks. withLock { eventCallbacks in
@@ -98,7 +98,7 @@ open class EventThread: EventReceiver, EventThreadable {
98
98
99
99
let dispatcher : EventDispatching = eventPool == nil ? EventCentral . shared : eventPool!
100
100
101
- dispatcher. removeReceiver ( self , forEventType: type ( of : forEventType) )
101
+ dispatcher. removeReceiver ( self , forEventType: forEventType)
102
102
}
103
103
104
104
/**
You can’t perform that action at this time.
0 commit comments