> 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/signal-instance/signal-wait.md).

# Signal:Wait()

```lua
Signal:Wait(args : Optional)
```

Waits until the signal is fired and if args are there the signals args equal the inputted args

## Code Examples

```lua
local Signal = Operator.NewSignal()
task.spawn(function()
    task.wait(2)
    Signal:Fire()
end)
Signal:Wait()
print("it was fired")
```
