Skip to content

Commit b367c02

Browse files
authored
Update SimpleDeferred.lua
1 parent 1ef012d commit b367c02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ReplicatedStorage/Signal/SimpleDeferred.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ end
8080
-- Connects a function to the ScriptSignal object
8181
function ScriptSignal:Connect(
8282
handle: (...any) -> ()
83-
)
83+
): ScriptConnection
84+
8485
assert(
8586
typeof(handle) == 'function',
8687
"Must be function"
@@ -230,6 +231,8 @@ function ScriptConnection:Disconnect()
230231
self._node = nil
231232
end
232233

234+
ScriptConnection.Destroy = ScriptConnection.Disconnect
235+
233236
export type Class = typeof(
234237
setmetatable({}, ScriptSignal)
235238
)

0 commit comments

Comments
 (0)