# Chapter 2: Doubt on Task and Actor

**URL:** <https://forums.kodeco.com/t/chapter-2-doubt-on-task-and-actor/203868>\
**Category:** Modern Concurrency in Swift\
**Created:** [April 21, 2024, 4:56am UTC](https://forums.kodeco.com/t/chapter-2-doubt-on-task-and-actor/203868 "2024-04-21T04:56:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkcavalier11](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@darkcavalier11](https://forums.kodeco.com/u/darkcavalier11)\
**Post date:** [April 21, 2024, 4:56am UTC](https://forums.kodeco.com/t/chapter-2-doubt-on-task-and-actor/203868/1 "2024-04-21T04:56:08Z")

</div>

On the section **Creating a New Task on a Different Actor** , there is an statement

For now, remember that when your code creates a `Task` from the main thread, that task will run on the main thread, too. Therefore, you know you can update the app’s UI safely.

But obviously if i create a task from playground and run a function inside the task that isn’t async and check if it is the main thread, its returning false. Please let me know what the statement exactly means and am i misinterpreting this. Here is the code i am talking about

```swift
import Foundation

func myFunc() {
    print(Thread.isMainThread) // false
    print("Hello")
}

Task {
    myFunc()
}

```
