VoltSignal
The VoltSignal library provides a custom signal implementation for creating and managing events.
Signal is an alias of the VoltSignal constructor table.
Overview
VoltSignal allows you to:
- Create custom signals/events
- Connect handlers to signals
- Wait for signals to fire
- Fire signals with arguments
Classes
VoltSignal
| Method | Description |
|---|---|
VoltSignal.new | Create a new VoltSignal |
VoltSignal:Connect | Connect a handler function |
VoltSignal:Once | Connect a handler for one fire |
VoltSignal:Wait | Yield until the signal fires |
VoltSignal:Fire | Fire the signal with arguments |
VoltConnection
| Method | Description |
|---|---|
VoltConnection:Disconnect | Disconnect the connection |
VoltConnection.Connected | Check whether a connection is active |