aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-04-25 11:34:50 +0200
committerMicael Karlberg <[email protected]>2019-05-29 18:40:07 +0200
commit2a040cf7c0cc6415b4bb5152b58d8a98a59d6a81 (patch)
tree21d0d23a2498ed997553c0d2ad5db3fdf0a9f9cb /erts/preloaded/src
parent08f4df99bbaafbba86a216734fa603bd2996f2a3 (diff)
downloadotp-2a040cf7c0cc6415b4bb5152b58d8a98a59d6a81.tar.gz
otp-2a040cf7c0cc6415b4bb5152b58d8a98a59d6a81.tar.bz2
otp-2a040cf7c0cc6415b4bb5152b58d8a98a59d6a81.zip
[esock|doc] Document the new asynchronous feature
Document the new way to make asynchronous calls to some of the functions: accept, all recv and all send. OTP-15731
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/socket.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl
index f4d8f175f8..59bef4b3b7 100644
--- a/erts/preloaded/src/socket.erl
+++ b/erts/preloaded/src/socket.erl
@@ -1359,7 +1359,7 @@ send(Socket, Data) ->
Data :: iodata(),
Flags :: send_flags(),
Reason :: term()
- ; (Socket, Data, nowait) -> ok |
+ ; (Socket, Data, Timeout :: nowait) -> ok |
{ok, SelectInfo} |
{ok, {RestData, SelectInfo}} |
{error, Reason} when
@@ -1488,7 +1488,7 @@ sendto(Socket, Data, Dest) ->
Dest :: null | sockaddr(),
Flags :: send_flags(),
Reason :: term()
- ; (Socket, Data, Dest, nowait) -> ok |
+ ; (Socket, Data, Dest, Timeout :: nowait) -> ok |
{ok, SelectInfo} |
{error, Reason} when
Socket :: socket(),
@@ -1630,7 +1630,7 @@ sendmsg(Socket, MsgHdr) ->
MsgHdr :: msghdr(),
Flags :: send_flags(),
Reason :: term()
- ; (Socket, MsgHdr, nowait) -> ok |
+ ; (Socket, MsgHdr, Timeout :: nowait) -> ok |
{ok, SelectInfo} |
{error, Reason} when
Socket :: socket(),
@@ -2162,7 +2162,7 @@ recvmsg(Socket) ->
Flags :: recv_flags(),
MsgHdr :: msghdr(),
Reason :: term()
- ; (Socket, nowait) -> {ok, MsgHdr} |
+ ; (Socket, Timeout :: nowait) -> {ok, MsgHdr} |
{ok, SelectInfo} |
{error, Reason} when
Socket :: socket(),