Send/Receive message
Send/Receive message
go :: Process ()
go = do
pid <- spawn recv
pid ! :msg
recv :: Process ()
recv = receive x -> printf "recv: %s" (showAny x)
go :: Process ()
go = do
pid <- spawn recv
pid ! :msg
recv :: Process ()
recv = receive x -> printf "recv: %s" (showAny x)
本文档使用 WanXiangYunDang 构建