code: function createSubscription (state, fn, options, context) {
      return {
        id: state.id(),
        fn: typeof fn === 'function' ? fn : noop,
        suspended: false,
        priority: +options.priority || 0,
        context: context || null
      };
    }
docs: Creates a subscription object