SE-0383: Deprecate @UIApplicationMain and @NSApplicationMain SE-0404: Allow Protocols to be Nested in Non-Generic Contexts SE-0411: Isolated Default Value Expressions SE-0412: Strict Concurrency for Global Variables
and @NSApplicationMain SE-0404: Allow Protocols to be Nested in Non-Generic Contexts SE-0411: Isolated Default Value Expressions SE-0412: Strict Concurrency for Global Variables
and @NSApplicationMain SE-0404: Allow Protocols to be Nested in Non-Generic Contexts SE-0411: Isolated Default Value Expressions SE-0412: Strict Concurrency for Global Variables
and @NSApplicationMain SE-0404: Allow Protocols to be Nested in Non-Generic Contexts SE-0411: Isolated Default Value Expressions SE-0412: Strict Concurrency for Global Variables
and @NSApplicationMain SE-0404: Allow Protocols to be Nested in Non-Generic Contexts SE-0411: Isolated Default Value Expressions SE-0412: Strict Concurrency for Global Variables
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ϩοΫͷΑ͏ͳׂΛՌͨ͢ λεΫ͕ Actor ͷ Executor ্Ͱ࣮ߦ͞Ε͍ͯΔ߹ʹͷΈ ͦͷ Actor ͷִ͞Εͨঢ়ଶʹΞΫηεͰ͖Δ Actor ͷ Executor ͷΞΫηεΛಘΔϓϩηε λεΫ͔ΒͷΈʮඇಉظతʯʹߦΘΕΔ ↓ Actor ͷ֎෦͔Β Actor ͷඇಉظϝιουΛݺͼग़͢ࡍʹ ՄೳͳதஅΛࣔ͢ҝʹ await ͕ඞཁʹͳΔ
ϩοΫͷΑ͏ͳׂΛՌͨ͢ λεΫ͕ Actor ͷ Executor ্Ͱ࣮ߦ͞Ε͍ͯΔ߹ʹͷΈ ͦͷ Actor ͷִ͞Εͨঢ়ଶʹΞΫηεͰ͖Δ Actor ͷ Executor ͷΞΫηεΛಘΔϓϩηε λεΫ͔ΒͷΈʮඇಉظతʯʹߦΘΕΔ ↓ ٯʹݴ͏ͱɺεϨουΛϒϩοΫͯ͠ΞΫηεΛͭ͜ͱ Swift Concurrencyͷݪଇʹ͢Δ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
0x6000025a4200 of class Counter deallocated with non-zero retain count 2. This object's deinit, or something called from it, may have created a strong reference to self which outlived deinit, resulting in a dangling reference. ࣮ߦ͢ΔͱΫϥογϡ͢Δ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
ΛͬͯͰ͖Δ͜ͱ͕ݫ੍͘͠ݶ͞Ε͍ͯΔ 2. Actor ͷ deinit ͰσʔλϨʔε͕ൃੜ͢ΔՄೳੑ͕͋Δ 3. init ͷதͰʹৗʹ Global Actor ͷִΛอ࣋͢Δ͜ͱ͕ Ͱ͖ͳ͍߹͕͋Δ 4. Actor ͕ܧঝΛαϙʔτ͍ͯ͠ͳ͍ʹ͔͔ΘΒͣ init ͷҕৡʹΫϥεͱಉ༷ʹconvenienceΩʔϫʔυ͕ඞཁͳ͜ͱ ݱঢ়ͷ
and @NSApplicationMain SE-0404: Allow Protocols to be Nested in Non-Generic Contexts SE-0411: Isolated Default Value Expressions SE-0412: Strict Concurrency for Global Variables