Emits a value to output writer.

    Args:
      value: a value of type expected by the output writer.
422692
def emit(self, value):
    
    if not self._tstate.output_writer:
      logging.error("emit is called, but no output writer is set.")
      return
    self._tstate.output_writer.write(value)
527723
def stream(self, value):
        

        if value is not None:
            assert type(value) is list, "'{0}' attribute: '{1}' type is not 'list'!".format("stream", value)
        self.__stream = value
524085
def WriteUInt256(self, value):
        
        if type(value) is UInt256:
            value.Serialize(self)
        else:
            raise Exception("Cannot write value that is not UInt256")
1331447
def set_value(self, value):
        
        check_call(_LIB.MXProfileSetCounter(self.handle, int(value)))
209776
def observe(self, value):
        
        self._buffer.append(value)
        if len(self._buffer) == _BUFFER_SIZE:
            self._flush()
1186500
def dump(self, value):
        
        value = self.__convert__(value)
        self.__validate__(value)
        return self.__serialize__(value)
145502
def token(self, value):
        
        if value and not isinstance(value, Token):
            value = Token(value)
        self._token = value
791978
def update(self, value):
        
        self.update_internal(value)
        self.emit('changed', self.get_widget_value())
558478
def append_string(self, value):
        
        self._stream.append_var_uint32(len(value))
        self._stream.append_raw_bytes(value)
882869
def write(self, value):
        
        self.get_collection().update_one(
            {'_id': self._document_id},
            {'$set': {self._path: value}},
            upsert=True
        )
934535
function output (err, value) {
      // Buffer err and value for
      // sending in case we do not have
      // a callback yet
      if (arguments.length >= 1) {
        buffer.push([err, value])
      }

      // We have something to output
      // and a callback, do it
      if (_cb && buffer.length > 0) {
        var cb = _cb
        _cb = null
        var call = buffer.shift()
        cb(call[0], call[1])
      }
    }
741568
public Output output(Object value) throws IOException {
        if (value != null) {
            writer.write(value.toString());
        }
        return this;
    }
572927
def _process_value(self, value, type):
        

        if not isinstance(value, six.string_types + (list,)):
            value = json.dumps(value)
        return value
91094
def _write(self, value):
        
        if ' ' in value:
            s = inspect.stack()
            fn = s[1].function
            super().write('%%DEBUG {} %%'.format(fn))
        super().write(value)
692508
def emit(*args):
        
        quad = Quad(*args)
        __DEBUG__('EMIT ' + str(quad))
        MEMORY.append(quad)
303542
def publish(self, value):
        
        value = super(Integer, self).publish(value)
        if isinstance(value, float):
            value = int(value)
        if not isinstance(value, (int, long)):
            raise ValueError("Not an integer: %r" % (value, ))
        return value
912707
def _format_value(self, value):
        
        value, unit = self.py3.format_units(value, unit=self.unit, si=self.si_units)
        return self.py3.safe_format(self.format_value, {"value": value, "unit": unit})