Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Update createSignal.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttolum authored Jun 11, 2022
1 parent 82b805a commit 55dfcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createSignal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ local function createSignal()
firing = true
for callback, connection in pairs(connections) do
if not connection.disconnected and not suspendedConnections[callback] then
callback(...)
task.spawn(callback, ...)
end
end

Expand Down

1 comment on commit 55dfcb1

@nuttolum
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggesting this since it would prevent each callback from yielding

Please sign in to comment.