# How to Create a Local Actor Isolated Task?

**URL:** <https://forums.swift.org/t/how-to-create-a-local-actor-isolated-task/77225>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [January 15, 2025, 10:42pm UTC](https://forums.swift.org/t/how-to-create-a-local-actor-isolated-task/77225 "2025-01-15T22:42:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [January 15, 2025, 10:46pm UTC](https://forums.swift.org/t/how-to-create-a-local-actor-isolated-task/77225/2 "2025-01-15T22:46:23Z")

</div>

> [@OguzYuuksel](#):
>
> I would expect to do that something like
> 
> ```swift
> Task { [isolate database] in
> 
> ```

That's indeed what we'll want and would be enabled by this pitch: [Closure isolation control](https://forums.swift.org/t/closure-isolation-control/70378) but implementation work has not started yet.

---

_[View the full topic](https://forums.swift.org/t/how-to-create-a-local-actor-isolated-task/77225)._
