Skip to content

Commit

Permalink
No timeout on devmode kb_emit (#4164)
Browse files Browse the repository at this point in the history
  • Loading branch information
uwiger committed Jul 3, 2023
1 parent 5bec2f9 commit ca3f1e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/aedevmode/src/aedevmode_emitter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).

%% On a reasonably fast machine, emission takes ca 2.5 s/1k keyblocks.
%% While we could try to guess at a reasonable timeout value based on
%% the requested number, let's be daring and use no timeout.
emit_keyblocks(N) when is_integer(N), N > 0 ->
gen_server:call(?MODULE, {emit_keyblocks, N}).
gen_server:call(?MODULE, {emit_keyblocks, N}, infinity).

set_keyblock_interval(I) when is_integer(I), I >= 0 ->
gen_server:call(?MODULE, {set_keyblock_interval, I}).
Expand Down

0 comments on commit ca3f1e8

Please sign in to comment.