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

# RealSignal.Fire

> Fires the RealSignal with zero or more values. Connected callbacks receive those values, once connections are disconnected before invocation, and waiting threads are resumed with the same values. The method returns no values.

<div className="real-function-page">
  ```lua theme={null}
  RealSignal.Fire(signal: RealSignal, ...values?: ....any)
  ```

  ## Arguments

  <ParamField path={"signal"} type={"RealSignal"} required>
    Signal object returned by Signal.new.
  </ParamField>

  <ParamField path={"...values"} type={"....any"}>
    Values forwarded to connected callbacks and waiting threads.
  </ParamField>

  ## Types

  ### RealSignal

  Signal object returned by Signal.new.

  | Name      | Type                                                 | Required | Description                                                                |
  | --------- | ---------------------------------------------------- | -------- | -------------------------------------------------------------------------- |
  | `Connect` | `(callback: (...any) -> ()) -> RealSignalConnection` | Yes      | Adds a callback that runs when Fire is called.                             |
  | `Once`    | `(callback: (...any) -> ()) -> RealSignalConnection` | Yes      | Adds a callback that is disconnected before its first callback invocation. |
  | `Wait`    | `() -> ...any`                                       | Yes      | Yields until Fire resumes the waiter with the fired values.                |
  | `Fire`    | `(...values: any) -> ()`                             | Yes      | Runs connected callbacks and resumes waiters with the provided values.     |

  ## Exemple

  Forward values to connected callbacks and waiting threads.

  ```lua theme={null}
  local signal = Signal.new()
  local total = 0

  signal:Connect(function(value)
      total += value
  end)

  signal:Fire(5)
  print(total)
  ```
</div>
