Skip to content

Commit

Permalink
Add initializer to WorkerNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
theboringhumane committed Sep 9, 2024
1 parent 1d01f2c commit bc2b292
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/TheBoringWorkerNotifier/TheBoringWorkerNotifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import Foundation
public struct WorkerNotification {
public var name: String
public var handler: (Notification) -> Void

public init(name: String, handler: @escaping (Notification) -> Void) {
self.name = name
self.handler = handler
}
}

public class TheBoringWorkerNotifier {
Expand Down

0 comments on commit bc2b292

Please sign in to comment.