git.iko.soy/distributed-process
on master help sign in
Don't give up ordering guarantees in 'usend' documentation.
13521a0Facundo Domínguez
src/Control/Distributed/Process/Internal/Primitives.hs+5−1
@@ -255,11 +255,15 @@ send them msg = do
255unsafeSend :: Serializable a => ProcessId -> a -> Process ()
255unsafeSend :: Serializable a => ProcessId -> a -> Process ()
256unsafeSend = Unsafe.send
256unsafeSend = Unsafe.send
257
257
258−-- | Send a message without any reliability or ordering guarantees.
258+-- | Send a message unreliably.
259--
259--
260-- Unlike 'send', this function is insensitive to 'reconnect'. It will
260-- Unlike 'send', this function is insensitive to 'reconnect'. It will
261-- try to send the message regardless of the history of connection failures
261-- try to send the message regardless of the history of connection failures
262-- between the nodes.
262-- between the nodes.
263+--
264+-- Message passing with 'usend' is ordered for a given sender and receiver
265+-- if the messages arrive at all.
266+--
263usend :: Serializable a => ProcessId -> a -> Process ()
267usend :: Serializable a => ProcessId -> a -> Process ()
264usend them msg = do
268usend them msg = do
265 here <- getSelfNode
269 here <- getSelfNode