git.iko.soy/distributed-process
on master help sign in
Don't give up ordering guarantees in 'usend' documentation.
commit13521a08bdf042c9f36787654b2d87af3ea84d8b authorFacundo Domínguez <facundo.dominguez@tweag.io> dateThu 29 Jan 2015, 17:45 (12 years ago) parentd126187
1 file changed+5−1
src/Control/Distributed/Process/Internal/Primitives.hs+5−1
src/Control/Distributed/Process/Internal/Primitives.hs+5−1
@@ -255,11 +255,15 @@ send them msg = do
255255unsafeSend :: Serializable a => ProcessId -> a -> Process ()
256256unsafeSend = Unsafe.send
257257
258−-- | Send a message without any reliability or ordering guarantees.
258+-- | Send a message unreliably.
259259--
260260-- Unlike 'send', this function is insensitive to 'reconnect'. It will
261261-- try to send the message regardless of the history of connection failures
262262-- 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+--
263267usend :: Serializable a => ProcessId -> a -> Process ()
264268usend them msg = do
265269 here <- getSelfNode