Skip to content

Commit 9485aad

Browse files
committed
[Swift] Add a setting for NonisolatedNonsendingByDefault upcoming feature
1 parent 46175b5 commit 9485aad

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Sources/SWBUniversalPlatform/Specs/Swift.xcspec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,19 @@
819819
Description = "Infer conformances of global-actor isolated types as isolated to the same actor unless isolation is explicitly specified as `nonisolated`.";
820820
},
821821

822+
{
823+
Name = "SWIFT_UPCOMING_FEATURE_NONISOLATED_NONSENDING_BY_DEFAULT";
824+
Type = Boolean;
825+
DefaultValue = NO;
826+
CommandLineArgs = {
827+
YES = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
828+
NO = ();
829+
};
830+
DisplayName = "Nonisolated Nonsending By Default";
831+
Category = "Upcoming Features";
832+
Description = "Runs nonisolated async functions on the caller's actor by default unless the function is explicitly marked `@concurrent`.";
833+
},
834+
822835
// Experimental features
823836
{
824837
Name = "SWIFT_EXPERIMENTAL_FEATURE_DEBUG_DESCRIPTION_MACRO";

0 commit comments

Comments
 (0)