Last active
December 22, 2015 00:19
-
-
Save Kozlov-V/6388062 to your computer and use it in GitHub Desktop.
ActionProcessing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
P = spawn(actionModule,doAction1, [Params]), | |
P ! {self(), "Hello"}. | |
receive | |
{StartDoAction2} -> | |
doAction2(Params), | |
P2 =spawn(actionModule,doAction3, [Params]), | |
end. | |
doAction2(Params) -> doAnyAction. %% Выполнение POST запроса, ожидаем ответ 200 | |
doAction1(Params) -> | |
%% Как правильно отправить сообщение об оканчании выполнения процесса | |
From ! "EndOk" | |
. | |
doAction3(Params) -> | |
doDoDoAnyActions(Params). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment