Hardly.Throttle.ExecuteIfReady C# (CSharp) Method

ExecuteIfReady() public method

public ExecuteIfReady ( ulong key ) : bool
key ulong
return bool
        public bool ExecuteIfReady(ulong key)
        {
            bool ready = TimeToSleepFor(key) <= 0;

            if(ready) {
                lastRequestTime[key] = DateTime.Now;
            }

            return ready;
        }