---
schema_version: "1"
id: a3b1a183e1ef0c0545cf06de1c344a77b11e90f9e5252f269fa595c99543279b
title: run()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-dollara-run.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-dollara-run.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9b3f7db27db8a16d4e8a55305b919d580b4545ffb985977a677190534fa97e75
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# run()

Deprecated. Use `getCallback()` instead.

## Signature

`run (function func, String name)`

## Parameters

**_func_:** Type: `function`. The function to run.

**_name_:** Type: `String`. An optional name for the stack.

