Permalink
Browse files

Update PDF

  • Loading branch information...
1 parent 6e00a67 commit 0a707831d94cb9d726aba0a72b36d78b781bc994 Evan Miller committed Dec 4, 2011
Showing with 5 additions and 2 deletions.
  1. BIN TUTORIAL.pdf
  2. +5 −2 priv/init/{cb_tutorial_news.erl → cb_tutorial_01_news.erl}
View
Binary file not shown.
@@ -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

0 comments on commit 0a70783

Please sign in to comment.