This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-swift.git
The following commit(s) were added to refs/heads/main by this push:
new b6ca546 feat: Make `ArrowTypeId` and `Info` enums `Sendable` (#43)
b6ca546 is described below
commit b6ca546b2e56afc23bd75bbc69e6123071438165
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Jun 23 17:06:03 2025 -0700
feat: Make `ArrowTypeId` and `Info` enums `Sendable` (#43)
## What's Changed
This PR aims to make `ArrowTypeId` and `Info` enums `Sendable`
explicitly in order to compile on Swift 6+.
Closes #44.
---
Arrow/Sources/Arrow/ArrowType.swift | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Arrow/Sources/Arrow/ArrowType.swift
b/Arrow/Sources/Arrow/ArrowType.swift
index 9b6091f..381078f 100644
--- a/Arrow/Sources/Arrow/ArrowType.swift
+++ b/Arrow/Sources/Arrow/ArrowType.swift
@@ -38,7 +38,7 @@ public enum ArrowError: Error {
case invalid(String)
}
-public enum ArrowTypeId {
+public enum ArrowTypeId: Sendable {
case binary
case boolean
case date32
@@ -213,7 +213,7 @@ public class ArrowType {
}
}
- public enum Info {
+ public enum Info: Sendable {
case primitiveInfo(ArrowTypeId)
case variableInfo(ArrowTypeId)
case timeInfo(ArrowTypeId)