Comparison

util/throttle.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parent 8272:64165865b131
child 12975:d10957394a3c
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
1 1
2 local gettime = require "util.time".now 2 local gettime = require "util.time".now
3 local setmetatable = setmetatable; 3 local setmetatable = setmetatable;
4 4
5 local _ENV = nil; 5 local _ENV = nil;
6 -- luacheck: std none
6 7
7 local throttle = {}; 8 local throttle = {};
8 local throttle_mt = { __index = throttle }; 9 local throttle_mt = { __index = throttle };
9 10
10 function throttle:update() 11 function throttle:update()