Skip to content

Commit

Permalink
Make Model Init Public
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Collins <ryan@ryanmcollins.com>
  • Loading branch information
rymcol committed Mar 8, 2017
1 parent 52cb61f commit 1a1eb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CronJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a1eb6a

Please # to comment.