From 0e826cf5dd957303aef7bfc1b31427a0a583d078 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 23 Oct 2017 07:25:24 -0700 Subject: [PATCH] Forgot to make the dang initializers public! hahaha --- Concurrency.podspec | 2 +- Concurrency/Info.plist | 2 +- Source/PeriodicFetcher.swift | 2 +- Source/Promise.swift | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Concurrency.podspec b/Concurrency.podspec index 0d85876..881c31b 100644 --- a/Concurrency.podspec +++ b/Concurrency.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Concurrency' - s.version = '1.0.1' + s.version = '1.0.2' s.summary = 'A small toolkit for handling concurrency in Swift.' s.description = <<-DESC diff --git a/Concurrency/Info.plist b/Concurrency/Info.plist index 427aee0..c399488 100644 --- a/Concurrency/Info.plist +++ b/Concurrency/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.1 + 1.0.2 CFBundleVersion 1 LSRequiresIPhoneOS diff --git a/Source/PeriodicFetcher.swift b/Source/PeriodicFetcher.swift index d902475..58cd2ed 100644 --- a/Source/PeriodicFetcher.swift +++ b/Source/PeriodicFetcher.swift @@ -81,7 +81,7 @@ public class PeriodicFetcher { //MARK: initialization - init(futureGenerator: @escaping FutureGenerator, + public init(futureGenerator: @escaping FutureGenerator, timeInterval: @escaping TimeIntervalGenerator) { self.getFuture = futureGenerator self.getTimeInterval = timeInterval diff --git a/Source/Promise.swift b/Source/Promise.swift index 4c238f5..d653478 100644 --- a/Source/Promise.swift +++ b/Source/Promise.swift @@ -9,6 +9,8 @@ import Foundation public class Promise { let future = Future() + + public init() {} func resolve(_ val: T) { future.resolve(val)