2024-06-11 15:19:22 +01:00
|
|
|
local fs = require("@lune/fs")
|
2024-07-15 14:16:36 +01:00
|
|
|
local luau = require("@lune/luau")
|
2024-06-11 15:19:22 +01:00
|
|
|
|
2024-07-15 14:16:36 +01:00
|
|
|
local SIGNAL_PATH =
|
|
|
|
"Packages/_Index/ffrostflame_luausignal@0.2.4/luausignal/src/init.luau"
|
2024-06-11 15:19:22 +01:00
|
|
|
local _signal = require(SIGNAL_PATH)
|
|
|
|
export type Signal<T...> = _signal.luauSignal<T...>
|
|
|
|
local signal: {
|
2024-07-15 14:16:36 +01:00
|
|
|
new: <T...>() -> Signal<T...>,
|
|
|
|
} = luau.load(
|
|
|
|
'local task = require("@lune/task")\n' .. fs.readFile(SIGNAL_PATH)
|
|
|
|
)()
|
2024-06-11 15:19:22 +01:00
|
|
|
|
|
|
|
return {
|
2024-07-15 14:16:36 +01:00
|
|
|
signal = signal,
|
2024-06-11 15:19:22 +01:00
|
|
|
}
|