$PNQMFUF4USJDU$PODVSSFODZͷҠߦઓུΛߟ͑Δ w J04ΞϓϦ։ൃʹదͨ͠$PODVSSFODZͷ͍ํ͋Γ·͔͢ʁ w ͍ͭ·Ͱʹ4USJDU$PODVSSFODZରԠ͢Εྑ͍Ͱ͔͢ʁ w Ͳ͔͜ΒҠߦΛ࢝ΊΔͱྑ͍Ͱ͔͢ʁ w Ͳ͏ͬͯҠߦ͍ͯ͘͠ͱྑ͍Ͱ͔͢ʁ w 4XJGU$PODVSSFODZͷֶशํ๏ w 4XJGUͷؾʹͳΔഁյతมߋ w 4&'PSXBSE5SBJMJOH$MPTVSFT w ͷ4XJGUͷ৽ػೳ w 4&4XJGU#BDLUSBDF"1*
w ִυϝΠϯ w σʔλִʹΑͬͯϝιουมΛִ͍ͯ͠ΔݸʑͷྖҬ w ͯ͢ͷมͱؔɺඇִɺΞΫλʔִɺάϩʔόϧΞΫλʔִ ͷ͍ͣΕ͔ʹؚ·ΕΔ w ִڥք w ִυϝΠϯؒͷڥք w ִڥքΛӽ͑Δ w ҟͳΔछྨͷִυϝΠϯؒͰ͕͞ΕΔ͜ͱ άϩʔ όϧΞΫ λʔִ ΞΫλʔ ִ ඇִ ִυϝΠϯ ִڥք ִڥքΛӽ͑Δ
w ͦͦɺͳʹΛνΣοΫͯ͠Δͷ͔͑͞ཧղग़དྷ͍ͯͳ͍ wطଘͷίʔυ͔ΒͷҠߦϓϩηε͕Θ͔Βͳ͍ w ࣗͷϓϩδΣΫτʹ߹ͬͨҠߦํ๏͕Θ͔Βͳ͍ w શମΛ$PODVSSFODZରԠͤ͞Δ͔ɺ!QSFDPODVSSFODZͷఆରԠͤ͞Δͷ͔ w DMBTTͷѻ͍ํ w ࣮ϓϩμΫτͰͷஈ֊తͳਐΊํɻಛʹϑϨʔϜϫʔΫͷҠߦ͕ඞཁͳ߹ $PNCJOF͔Βͷ ஔͳͲ wҠߦίετ͕͔͔Γͦ͏ w طଘίʔυ͕ଟ͗ͯ͢Ҡߦແཧͦ͏ɻԼखͨ͠ΒϞσϧ͔Βม͑ͳ͍ͱ͍͚ͳ͍ w ʹݟ߹ͬͨରԠ͢ΔϝϦοτ͋Δͷ͔ʁ ͍͍͑ͱ ͑ͨํ ࣄલΞϯέʔτͷ݁Ռ
C1: P1 { func method() { } @OtherGlobalActor func testMethod() { method() _ = method } } // expected-error {{call to global actor 'SomeGlobalActor'-isolated instance method 'method()' in a synchronous global actor 'OtherGlobalActor'-isolated context}}
P1 { func method() { } @OtherGlobalActor func testMethod() { method() _ = method } } // expected-error {{call to global actor 'SomeGlobalActor'-isolated instance method 'method()' in a synchronous global actor 'OtherGlobalActor'-isolated context}} Swift ConcurrencyͷཧղΛਂΊΔ > Τϥʔ(ܯࠂ)ͷௐํ ৄ͘͜͜͠ΛΫϦοΫ ࣮ࡍʹग़ྗ͞ΕΔจݴͱಉ͡