Sobes.tech
Senior

թույլ տվեք, որ ծնողը լինի Task { let child = Task { print("երեխան սկսվեց, isCancelled = ", Task.isCancelled) // for index in (1...[phone]) { print(index) } print("երեխան ավարտվեց, isCancelled = ", Task.isCancelled) // } await child.value } try? await Task.sleep(nanoseconds: 1_000_000_000) // 1 վայրկյան parent.cancel()