roact
roact copied to clipboard
why does createSignal not use the task library?
the createSignal file has the following code:
for callback, connection in pairs(connections) do
if not connection.disconnected and not suspendedConnections[callback] then
callback(...)
end
end
why is this not done differently? I would do it like this:
for callback, connection in pairs(connections) do
if not connection.disconnected and not suspendedConnections[callback] then
task.spawn(callback, ...)
end
end
Callbacks aren't allowed to yield