> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connection

A wrapper around a native `RBXScriptConnection` that exposes fields and methods the engine doesn't surface natively.

`Connection` objects are produced by [`getconnections`](/docs/signals/getconnections) when it walks a signal's connection list. Whether the original `:Connect` call lived in your script, in a game LocalScript, or in a CoreScript, the executor wraps it the same way.

## Returns

`void`

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  -- Simple usage
  Connection:Defer(...: any): ()
  =======
  -- Connection:Defer(...: any): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  Connection:Disconnect(): ()
  ```
</CodeGroup>

<Tip>
  Always check parameters and return values when working with this library function.
</Tip>
