Skip to content

Instantly share code, notes, and snippets.

@Kozlov-V
Last active December 22, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kozlov-V/6388062 to your computer and use it in GitHub Desktop.
Save Kozlov-V/6388062 to your computer and use it in GitHub Desktop.
ActionProcessing
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