Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update PDF

  • Loading branch information...
commit 0a707831d94cb9d726aba0a72b36d78b781bc994 1 parent 6e00a67
Evan Miller authored
View
BIN  TUTORIAL.pdf
Binary file not shown
View
7 priv/init/cb_tutorial_news.erl → priv/init/cb_tutorial_01_news.erl
@@ -1,6 +1,6 @@
--module(cb_tutorial_news).
+-module(cb_tutorial_01_news).
--export([init/0]).
+-export([init/0, stop/1]).
% This script is first executed at server startup and should
% return a list of WatchIDs that should be cancelled if the
@@ -15,6 +15,9 @@ init() ->
end),
{ok, [WatchId]}.
+stop(ListOfWatchIDs) ->
+ lists:map(fun boss_news:cancel_watch/1, ListOfWatchIDs).
+
%%%%%%%%%%% Ideas
% boss_news:watch("user-42.*",
% fun
Please sign in to comment.
Something went wrong with that request. Please try again.