From 1a1eb6a00b71cf0a73ddf835854c9322e6ae9c6e Mon Sep 17 00:00:00 2001 From: Ryan Collins Date: Tue, 7 Mar 2017 19:12:28 -0500 Subject: [PATCH] Make Model Init Public Signed-off-by: Ryan Collins --- Sources/CronJob.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CronJob.swift b/Sources/CronJob.swift index e862fe5..9bfecf6 100644 --- a/Sources/CronJob.swift +++ b/Sources/CronJob.swift @@ -55,7 +55,7 @@ public class CronJob: Equatable { /// - allowsSimultaneous: if more than one of this job can run at the same time, not currently implemented /// - repeats: if you want the job to repeat after it's first run /// - interval: how often, in seconds, the func should be called after it's been started first. Note: if it doesn't allow simulatneous running, it will not run until the first job has been executed (once implemented). If it does, it will start regardless to whether or not the last run has finished. - init(_ method: @escaping () -> (), executeAfter date: Date = Date(), allowsSimultaneous: Bool = false, repeats: Bool = false, repeatEvery interval: TimeInterval? = nil) { + public init(_ method: @escaping () -> (), executeAfter date: Date = Date(), allowsSimultaneous: Bool = false, repeats: Bool = false, repeatEvery interval: TimeInterval? = nil) { _id = UUID() self.method = method _date = date