git » sdk » commit d178394

We will run this handler on another thread

author Stephen Paul Weber
2026-08-19 18:01:51 UTC
committer Stephen Paul Weber
2026-08-19 18:01:51 UTC
parent 483dcafa70f8a43ceb2c78c44eb79b848ec5f8d2

We will run this handler on another thread

HaxeSwiftBridge.hx +1 -1

diff --git a/HaxeSwiftBridge.hx b/HaxeSwiftBridge.hx
index 4dd452f..8eb5b9f 100644
--- a/HaxeSwiftBridge.hx
+++ b/HaxeSwiftBridge.hx
@@ -982,7 +982,7 @@ class HaxeSwiftBridge {
 		return code('
 			import c_' + libName + '
 
-			public func setup(_ handler: @convention(c) @escaping (UnsafePointer<CChar>?)->Void) {
+			public func setup(_ handler: @convention(c) @escaping @Sendable (UnsafePointer<CChar>?)->Void) {
 				c_' + libName + '.' + libName + '_setup(handler)
 			}