--[[
	Calls the bound function every interval until shouldContinueCallback doesn't return true
]]

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