Skip to content

Commit c4c6f6e

Browse files
mvyrkobenski
authored andcommitted
mark array extension methods join and when as public (#16)
* mark array extension methods join and when as public * 3.0.7
1 parent 837f06d commit c4c6f6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BAPromise.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "BAPromise"
3-
s.version = "3.0.6"
3+
s.version = "3.0.7"
44
s.summary = "Objective C Promise Library"
55
s.description = <<-DESC
66
Swift Promise Library. An alternative to NSOperation for asynchronous operations.

Classes/Promise.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ extension Promise {
275275

276276
// Join
277277
extension Array {
278-
func when<ValueType>() -> Promise<Array<ValueType>> where Element == Promise<ValueType> {
278+
public func when<ValueType>() -> Promise<Array<ValueType>> where Element == Promise<ValueType> {
279279
guard self.count > 0 else { return Promise<Array<ValueType>>([]) }
280280
var cancelTokens = [PromiseCancelToken]()
281281

@@ -309,7 +309,7 @@ extension Array {
309309
return returnedPromise
310310
}
311311

312-
func join <ValueType>() -> Promise<Array<PromiseResult<ValueType>>> where Element == Promise<ValueType> {
312+
public func join <ValueType>() -> Promise<Array<PromiseResult<ValueType>>> where Element == Promise<ValueType> {
313313
guard self.count > 0 else { return Promise<Array<PromiseResult<ValueType>>>([]) }
314314
var cancelTokens = [PromiseCancelToken]()
315315

0 commit comments

Comments
 (0)