---
title: get()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/tasklocal/get()
---

# get()

Gets the value currently bound to this task-local from the current task.

## Declaration

```swift
@abi(final func get_aeic() -> Value) final func get() -> Value
```

## Discussion

Discussion If no current value binding is available in the context where this call is made, or if the task-local has no value bound, this will return the defaultValue of the task local. A task local value may still be bound and read even without a Swift concurrency task present, as the underlying storage will fallback to using a managed thread-local value when no task is available. From the perspective of task local APIs, the presented semantics remain exactly the same as when a task is present.
