> For the complete documentation index, see [llms.txt](https://carrot-telloplia.gitbook.io/operator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://carrot-telloplia.gitbook.io/operator/api/operator.onsignal.md).

# Operator.OnSignal()

```lua
Operator.OnSignal(function : Callback)
```

Whenever any signal at all is fired this function is called

Returns a connection

## CODE EXAMPLE

```lua
local signal = Operator.NewSignal()
Operator.OnSignal(function(source, ...)
    print(source) --> Prints Source See Signal Connection for more info
    print(...)
end)
signal:Fire()
```
