RequestAgeRangeAction is not sendable, should it be?

The DeclaredAgeRange framework's 'actions' are not sendable. This means when the app is in swift 6 mode, the sample code provided in the documentation won't even compile due to the thread isolation.

Is there any reason why the action closure in the environment can't be sendable? Otherwise @preconcurrency import for me.

FB20959748

Answered by rohitnarula77 in 893074022

For now, @preconcurrency is the only way around this in Swift 6. Please file a feedback request to allow it.

Accepted Answer

For now, @preconcurrency is the only way around this in Swift 6. Please file a feedback request to allow it.

RequestAgeRangeAction is not sendable, should it be?
 
 
Q