const immediate = {
  passive: false
};
const delayed = {
  passive: true
};

const getListenerOptions = (options) => (options.shouldPublishImmediately ? immediate : delayed);

export default getListenerOptions;
