# Moving function call into explicit Task allows sending?

**URL:** <https://forums.swift.org/t/moving-function-call-into-explicit-task-allows-sending/75356>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [October 13, 2024, 10:52pm UTC](https://forums.swift.org/t/moving-function-call-into-explicit-task-allows-sending/75356 "2024-10-13T22:52:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![NSFatalError](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nsfatalerror/32/37725_2.png) [@NSFatalError](https://forums.swift.org/u/NSFatalError)\
**Post date:** [October 14, 2024, 5:41am UTC](https://forums.swift.org/t/moving-function-call-into-explicit-task-allows-sending/75356/2 "2024-10-14T05:41:37Z")

</div>

Seems like the [issue I've reported](https://forums.swift.org/t/calling-non-isolated-async-method-from-a-child-task-inheriting-global-actor-allows-for-a-race-condition-in-swift-6/75332) to me, here it's even more subtle as the `@MainActor` declaration is hidden behind the `View` protocol.

---

_[View the full topic](https://forums.swift.org/t/moving-function-call-into-explicit-task-allows-sending/75356)._
