Util
Crystal via ModuleScript
Crystal comes with a few utility modules. If Crystal is being used from the packaged
ModuleScript, then the best way to access these modules is via require(Crystal.Util.PACKAGE).
The following modules are available:
Crystal.Util.CommCrystal.Util.ComponentCrystal.Util.EnumListCrystal.Util.InputCrystal.Util.OptionCrystal.Util.SignalCrystal.Util.StreamableCrystal.Util.TableUtilCrystal.Util.TimerCrystal.Util.TroveCrystal.Util.Promise
Below is an example of the Signal class being used in a service:
local Signal = require(Crystal.Util.Signal)
local MyService = Crystal.CreateService {
Name = "MyService",
SomeSignal = Signal.new(),
}