lib/story_teller/dispatchers/agent.rb
## This method is used in a multi threaded
# environment. For this reason, it can only read from
# frozen variables and inputs fed into this method.
#
# The method also send data through the socket
# without blocking the thread. This means we don't
# deal with the return value.
#
# If any error happens here, we just log to stderr
# and move on.
This method is used in a multi threaded
environment. For this reason, it can only read from
frozen variables and inputs fed into this method.

The method also send data through the socket
without blocking the thread. This means we don't
deal with the return value.

If any error happens here, we just log to stderr
and move on.
This method is used in a multi threaded environment . For this reason it can only read from frozen variables and inputs fed into this method . The method also send data through the socket without blocking the thread . This means we don ' t deal with the return value . If any error happens here we just log to stderr and move on .
def submit(data)
      socket = ::UNIXSocket.new(@path)
      socket.sendmsg_nonblock(data, 0)
      socket.close
    rescue StandardError => e
      log(e, data)
    end
def submit ( data ) socket = :: UNIXSocket . new ( @path ) socket . sendmsg_nonblock ( data , 0 ) socket . close rescue StandardError => e log ( e , data ) end
This method is used in a multi threaded
environment.
This method is used in a multi threaded environment .
data
<not_specific>