= nc.default .notifications(named: .init("SampleName2")) .compactMap { $0.object as? Int } Task { for await value in notifications { print(“\(value)”) // ࣮ߦ݁Ռͷྫɿ0,3,4,5,6,7,8,9 } } // ҰؾʹૹΔͱऔΓ͜΅͢ for value in 0..<10 { nc.post(name: .init("SampleName2"), object: value) }