diff options
author | Jean Flach <Crunsher@users.noreply.github.com> | 2018-10-26 15:56:27 +0200 |
---|---|---|
committer | Jean Flach <Crunsher@users.noreply.github.com> | 2018-10-26 15:57:23 +0200 |
commit | 9ff1cc7826f6d546fc0fcdd7f08554e729a447a1 (patch) | |
tree | 80b6dc8667e60773d6296065b7a7ef1ab728272d | |
parent | 970e5fa0a39693efdd89b1fc65c5472a0b7b4912 (diff) |
Update README.md
Add note about using context->data to pass user data to connect and disconnect callbacks
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -286,6 +286,7 @@ return `REDIS_ERR`. The function to set the disconnect callback has the followin ```c int redisAsyncSetDisconnectCallback(redisAsyncContext *ac, redisDisconnectCallback *fn); ``` +`ac->data` may be used to pass user data to this callback, the same can be done for redisConnectCallback. ### Sending commands and their callbacks In an asynchronous context, commands are automatically pipelined due to the nature of an event loop. |