return function(K,l,c)spawn(function()while c do l()wait(K)end end)end

return function(interval, boundFunction, shouldContinueCallback)
	spawn(
		function()
			while shouldContinueCallback do
				boundFunction()
				wait(interval)
			end
		end
	)
end
