%% possible. The more there're cells, the more likely this is to happen.)
handle_cast({state_broadcast, ReceivedGenID, _NeighborState}=Msg,
#state{gen_id=GenID, name=Name}=State) when GenID =/= ReceivedGenID->
- gen_server:cast(Name, Msg),
+ ok = gen_server:cast(Name, Msg),
{noreply, State};
,replies_pending = 0
,gen_id = 0
},
- schedule_next_gen(),
+ ok = schedule_next_gen(),
{ok, State}.
ok = do_print_bar(X),
ok = do_print_state_chars(X, StateChars),
ok = timer:sleep(?INTERVAL),
- schedule_next_gen(),
+ ok = schedule_next_gen(),
{noreply, NewState#state{state_pairs=[]}};
_N ->
%% ============================================================================
schedule_next_gen() ->
- gen_server:cast(?MODULE, next_gen).
+ ok = gen_server:cast(?MODULE, next_gen).
cast_all([], _) -> ok;