code: function defer(cb) {
      if (storage.LATENCY === 0 && typeof process !== 'undefined') {
        process.nextTick(cb);
      } else {
        setTimeout(cb, storage.LATENCY);
      }
    }
docs: Defer callback execution to the next process tick, or optionally
  set chrome.storage.LATENCY to simulate latency in storage access