-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
@concurrentFeature → attributes: The @concurrent attributeFeature → attributes: The @concurrent attribute@mainFeature → attributes: the @main attributeFeature → attributes: the @main attributeSILGenArea → compiler: The SIL generation stageArea → compiler: The SIL generation stageactor isolationFeature → concurrency: Actor isolationFeature → concurrency: Actor isolationbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresswift 6.2unexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output
Description
Description
No response
Reproduction
@main struct Foo {
@concurrent static func main() async throws {
print(Thread.isMainThread) // true
}
}
Expected behavior
Runs on the concurrent executor
Environment
swift-driver version: 1.127.14.1 Apple Swift version 6.2 (swiftlang-6.2.0.19.8 clang-1700.3.19.1)
Additional information
No response
Metadata
Metadata
Assignees
Labels
@concurrentFeature → attributes: The @concurrent attributeFeature → attributes: The @concurrent attribute@mainFeature → attributes: the @main attributeFeature → attributes: the @main attributeSILGenArea → compiler: The SIL generation stageArea → compiler: The SIL generation stageactor isolationFeature → concurrency: Actor isolationFeature → concurrency: Actor isolationbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresswift 6.2unexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output