Skip to content

Commit

Permalink
Made new methods on Eventable public
Browse files Browse the repository at this point in the history
To eliminate need to replicate boilerplating
  • Loading branch information
LK-Simon committed Aug 11, 2022
1 parent 047c2bd commit e80c862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/EventDrivenSwift/Event/Eventable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ extension Eventable {
EventCentral.stackEvent(self, priority: priority)
}

@discardableResult static func addListener<TEvent: Eventable>(_ requester: AnyObject, _ callback: @escaping TypedEventCallback<TEvent>) -> UUID {
@discardableResult static public func addListener<TEvent: Eventable>(_ requester: AnyObject, _ callback: @escaping TypedEventCallback<TEvent>) -> UUID {
return EventCentral.addListener(requester, callback, forEventType: Self.self)
}

static func removeListener(_ token: UUID) {
public static func removeListener(_ token: UUID) {
EventCentral.removeListener(token, typeOf: Self.self)
}
}

0 comments on commit e80c862

Please sign in to comment.