Skip to content

Commit

Permalink
Revert @mainactor call cause the method cannot be used on the main th…
Browse files Browse the repository at this point in the history
…read
  • Loading branch information
rcasula committed Sep 14, 2023
1 parent d0e9a89 commit f3ef59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ComposableCoreLocation/Live.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extension LocationManager {
#endif
},
location: { @MainActor in await task.value.manager.location.map(Location.init(rawValue:)) },
locationServicesEnabled: { @MainActor in CLLocationManager.locationServicesEnabled() },
locationServicesEnabled: { CLLocationManager.locationServicesEnabled() },
maximumRegionMonitoringDistance: { @MainActor in
#if os(iOS) || os(macOS) || targetEnvironment(macCatalyst)
return await task.value.manager.maximumRegionMonitoringDistance
Expand Down

0 comments on commit f3ef59e

Please sign in to comment.