-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(with_client): change with_client/2,3 to pick_and_do/3 (#24)
* refactor(with_client): change with_client/2,3 to pick_and_do/3 Change the actions and callbacks to type {M, F, A} to avoid badfun when hot upgrading modules.
- Loading branch information
1 parent
aa5b97e
commit 47a223f
Showing
5 changed files
with
146 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
-type callback() :: fun((any()) -> any()). | ||
-type action() :: fun((pid()) -> any()). | ||
-type exec_mode() :: relay | relay_async | {relay_async, callback()} | direct. | ||
-type callback() :: mfa() | fun((any()) -> any()). | ||
-type action() :: mfa() | fun((pid()) -> any()). | ||
-type apply_mode() :: handover | ||
| handover_async | ||
| {handover, timeout()} | ||
| {handover_async, callback()} | ||
| no_handover. | ||
-type pool_type() :: random | hash | direct | round_robin. | ||
-type pool_name() :: term(). | ||
-type conn_callback() :: mfa(). | ||
-type option() :: {pool_size, pos_integer()} | ||
| {pool_type, pool_type()} | ||
| {auto_reconnect, false | pos_integer()} | ||
| {on_reconnect, conn_callback()} | ||
| {on_disconnect, conn_callback()} | ||
| tuple(). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.