Skip to content

Commit

Permalink
Make MSC public
Browse files Browse the repository at this point in the history
ah ha i know what im doing dont worry
  • Loading branch information
ualch9 committed Sep 20, 2020
1 parent d1a2a11 commit dc7794c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MeteorologicalServiceOfCanada {
return canada
}()

init() {
public init() {
self.operationQueue = OperationQueue()
self.operationQueue.name = "MSC_Queue"
self.operationQueue.maxConcurrentOperationCount = 1
Expand All @@ -30,8 +30,8 @@ public class MeteorologicalServiceOfCanada {
operationQueue.addOperation(getStationsOperation)
}

func getCurrentConditions(at location: (latitude: Double, longitude: Double),
then handler: @escaping (Result<CurrentConditions, Error>) -> Void) {
public func getCurrentConditions(at location: (latitude: Double, longitude: Double),
then handler: @escaping (Result<CurrentConditions, Error>) -> Void) {
let selectedStation = StationRecord(location: location)

if !operationQueue.operations.contains(getStationsOperation) && !getStationsOperation.isFinished {
Expand Down

0 comments on commit dc7794c

Please sign in to comment.