Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 010385c

Browse files
author
Sam Tavakoli
committed
Correcting type specs
1 parent 015b15e commit 010385c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gascheduler.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
%% Types
3636
-type worker_nodes() :: [node()].
3737
-type max_workers() :: non_neg_integer().
38-
-type max_retries() :: pos_integer().
38+
-type max_retries() :: pos_integer() | infinity.
3939
-type client() :: pid().
4040
-type pending() :: queue:queue(mfa()).
4141
-type running() :: [{pid(), mfa()}].
@@ -92,7 +92,7 @@ start_link(Nodes, Client, MaxWorkers, MaxRetries) ->
9292
stop(Name) ->
9393
gen_server:call(Name, stop).
9494

95-
-spec execute(atom(), mfa()) -> ok.
95+
-spec execute(atom(), {module(), atom(), [term()]}) -> ok.
9696
execute(Name, MFA) ->
9797
gen_server:call(Name, {execute, MFA}).
9898

0 commit comments

Comments
 (0)