Skip to content

Commit 8cacca4

Browse files
committed
Fix runtime crash by requiring log closure to be @sendable
Potentially related to swiftlang/swift#77129
1 parent 4df2a05 commit 8cacca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StaticMap/StaticMap+Render.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extension StaticMap {
1919
/// - Returns: The rendered image
2020
public func render(
2121
maxTiles: Int = 20,
22-
log: ((String) -> Void)? = nil,
22+
log: (@Sendable (String) -> Void)? = nil,
2323
isolation: isolated (any Actor)? = #isolation
2424
) async throws -> CairoImage {
2525
guard tileProvider.urlTemplate.hasSuffix(".png") else {

0 commit comments

Comments
 (0)