diff --git a/Sources/SkipFoundation/Thread.swift b/Sources/SkipFoundation/Thread.swift index cca2f51..c0d8854 100644 --- a/Sources/SkipFoundation/Thread.swift +++ b/Sources/SkipFoundation/Thread.swift @@ -26,6 +26,11 @@ public struct Thread : Hashable, Sendable, KotlinConverting { self == Thread.current } + public var name: String? { + get { platformValue.getName() } + set { platformValue.setName(newValue ?? "") } + } + public static var callStackSymbols: [String] { Array(Thread.current.platformValue.getStackTrace().map({ $0.toString() })) }