TyrangYang_Blog
Posts Tags Categories
TyrangYang_Blog
Cancel
Posts Tags Categories

Concurrent Programming Course note 5

Haolin Yang included in Concurrent-programming
 2019-10-31  34 words   One minute 

Message passing

1
2
3
4
5
6
7
echo() ->
    receive
        {From, Msg} -> From ! {Msg}, echo();
        %^pattern^    %^response^   %^keep loop
        stop -> true
        %^pattern^  ^a return value and stop receiving
    end.
Updated on 2019-10-31
Read Markdown
 concurrent, course note
Back | Home
Why Can’t I Open My React App By Clicking Index.html? VSCode shortCut
Powered by Hugo | Theme - LoveIt
2025 Haolin Yang | Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License